30.03.2013, 16:11
Oki, If i compile my script it said ''stopped working''
I use windows xp
so not needed to run as admin.
I use Bracketfix BETA. It said in this line is an error:
But for me it's good.
I edited before OnPlayerText:
Is Somethng Wrong With That?
I use windows xp
![cool](images/smilies/cool.png)
I use Bracketfix BETA. It said in this line is an error:
Код:
CreateDynamicObject(9822,-748.67614746,2585.81518555,10016.30566406,0.00000000,0.00000000,267.50000000); //object(shpbridge_sfw08) (1)
I edited before OnPlayerText:
Код:
public OnRconLoginAttempt(ip[], password[], success) { new plip[MAX_PLAYER_IP], playerid; foreach(Player, i) { GetPlayerIp(i, plip, sizeof(plip)); if(strcmp(plip, ip) == 0) { playerid = i; } } } if(success) { if(PlayerInfo[playerid][pAdmin] < 99998) Kick(playerid); else { if(RconAttempts[playerid] < 3) RconAttempts[playerid]++; else Kick(playerid); } return 1; } public OnPlayerText(playerid, text[]) { if(gPlayerLogged{playerid} != 1) { SendClientMessageEx(playerid, COLOR_RED, "You are not logged in."); return 0; } for(new i = 0; i < sizeof(restrictedWords); i++) { if(strfind(text, restrictedWords[i], true) != -1) { new plip[MAX_PLAYER_IP]; GetPlayerIp(playerid, plip, sizeof(plip)); AddBan(plip); } } } if(TextSpamUnmute[playerid] != 0) { if(PlayerInfo[playerid][pAdmin] < 2) { SendClientMessage(playerid, COLOR_WHITE, "You are muted from submitting text right now."); return 0; } } if(PlayerInfo[playerid][pAdmin] < 2) { TextSpamTimes[playerid]++; if(TextSpamTimes[playerid] == 5) { TextSpamTimes[playerid] = 0; TextSpamUnmute[playerid] = 10; SendClientMessageEx(playerid, COLOR_YELLOW, "You have been muted automatically for spamming. Please wait 10 seconds and try again."); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION); return 0; } }