Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /pw
1. Nie dziala komenda /pm /pw /w
Witam pisze tutaj poniewaz od ostatniego czasu nie dziala komenda /pm /pw oraz /w zadnych bledow w db3 nizej przesylam core jest z psrpg
s_commands.lua
[lua]
function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end

local settings = {
['swearFilter'] = {
['enabled'] = true,
['swears'] = { -- Allows you to set the blocked swear words, syntax is ['WORD'] = 'REPLACEMENT'
['k****'] = '****',
['cwel'] = '****',
['k****?'] = '****',
['c w e l'] = '****',
['k u r w a'] = '****',
['cwelem'] = '******',
['c w e l e m'] = '****',
['k u r w ?'] = '****',
['szmata'] = '****',
['dziwka'] = '****',
['*****'] = '****',
['jajebie'] = '****',
['j***e'] = '****',
['*****'] = '****',
['*****'] = '****',
['k****'] = '****',
['frajer'] = '****',
['frajerze'] = '****',
['*****'] = '****',
['ja *****'] = '****',
['*****'] = '****',
['*****'] = '****',
['c***'] = '****',
['szmato'] = '****',
['dziwko'] = '****',
['peda?'] = '****',
['pedal'] = '****',
['peda?y'] = '****',
['frjerzy'] = '****',
['frajerka'] = '****',
['p****'] = '****',
['piz...
2. [GF] komendy /odleglosc /pw
siema, mam problem z dwoma komendami /odleglosc i /pw kt?re ostatnio dodawalem do mapy wszystko jest okej nie ma error?w, warning?w ale jak wpisuje komende na serwerze to pisze ze nie ma takiej komendy prosze o pomoc :) bedzie reput i piwo

[code] if(!strcmp(cmd, "/pm", true) || !strcmp(cmd, "/pw", true))
{
// new string[130];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pm [playerid] [text]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pw [playerid] [text]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strrest(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pm [playerid] [text]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pw [playerid] [text]");
return 1;
}
if(zablokowalpw[giveplayerid])
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Gracz ma zablokowane PM.");
return 1;
}
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "{0099FF}Prywatna Wiadomo?? {FFFFFF}zosta?a wys?ana do %s(ID: %d).", PlayerName(giveplayerid),giveplayerid);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{FFFFFF}Otrzyma?e? now? {0099FF}prywatn? wiadomo??{FFFFFF} od %s(ID: %d).", PlayerName(playerid), playerid);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, siz...