[HELP] String errors..
#4

pawn Код:
if(strfind(cmdtext, "|", true) != -1)
{
    SendClientMessageEx(playerid, COLOR_RED, "You cannot use the '|' character in commands.");
    return 0;
}

if(strfind(cmdtext, "duffelswithbags", true) != -1)
{
    format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /duffelswithbags... <-- dumbass", GetPlayerNameEx(playerid));
    ABroadCast(COLOR_YELLOW,string,1);
    PlayerInfo[playerid][pBanned] = 1;
    new ip[32];
    GetPlayerIp(playerid,ip,sizeof(ip));
    AddBan(ip);
    Kick(playerid);
    return 0;
}
Reply


Messages In This Thread
[HELP] String errors.. - by Oscii - 09.05.2012, 21:01
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 21:11
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 21:30
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 21:35
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 21:51
Re: [HELP] String errors.. - by Face9000 - 09.05.2012, 22:07
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 22:08
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 22:14
Re: [HELP] String errors.. - by Face9000 - 09.05.2012, 22:17
Re: [HELP] String errors.. - by Snipa - 09.05.2012, 22:41

Forum Jump:


Users browsing this thread: 4 Guest(s)