/warn
#2

PHP код:
{
        new 
targetreason[128], pName[MAX_PLAYER_NAME], gName[MAX_PLAYER_NAME], string[128];
        if (
sscanf(params,"us[128]"target,reason)) return SendClientMessage(playerid,0xFF0000AA,"Eniieucoe: /warn [playerid] [I?e?eia]");
if(
IsPlayerConnected(giveplayerid))
{
        if(
level[playerid] >= 1)
        
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
        
GetPlayerName(targetgNameMAX_PLAYER_NAME);
        
SetPVarInt(target"Warnings"GetPVarInt(target"Warnings") + 1);
        if(
GetPVarInt(target"Warnings") == 3)
        {
            
format(stringsizeof string"{FF0A00}-[Aaieieno?aoi?: %s]- {FFFFFF} aaoiiaoe?aneee eee %s ca 3 i?aaoi?a?aaiey, iineaaiaa: %s"pNamegNamereason);
            
SendClientMessageToAll(COLOR_YELLOWstring);
            
SendClientMessage(targetCOLOR_RED"Ou aue eeeioo ca 3 i?aaoi?a?aaiey!");
            
format(stringsizeof string"{FF0A00}-[Aaieieno?aoi?: %s]- {FFFFFF} i?aaoi?aaee %s: %s [Eeeioo]"pNamegNamereason);
            
Kick(target);
        }
        else
        {
                
format(stringsizeof string"{FF0A00}-[Aaieieno?aoi?: %s]- {FFFFFF} i?aaoi?a?aee %s i?e?eia: %s"pNamegNamereason);
                
SendClientMessageToAll(COLOR_YELLOW,string);
                
format(stringsizeof string"{FF0A00}-[Aaieieno?aoi?: %s]- {FFFFFF} i?aaoi?aaee ea?iea: %s [I?aaoi?a?aaiee %d/3]"pNamereasonGetPVarInt(target"Warnings"));
                
SendClientMessage(targetCOLOR_YELLOWstring);
                
format(stringsizeof string"{FF0A00}-[Aaieieno?aoi?: %s]- {FFFFFF} i?aaoi?a?aaiey %s: %s [%i/3]"pNamegNamereasonGetPVarInt(target"Warnings"));
        }
        return 
1;

Reply


Messages In This Thread
/warn - by [HHT]DRON - 29.08.2011, 19:35
Re: /warn - by =WoR=G4M3Ov3r - 29.08.2011, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)