Nick problem
#2

Try this:

PHP код:
COMMAND:slap(playerid,params[])
{  
    new 
OtherPlayerMsg[150], Name[24], Message[150], OtherPlayerName[24];
    
SendAdminText(playerid,"/slap"params);
   
    if (
APlayerData[playerid][PlayerLevel] >= 2)
    {
        
GetPlayerName(playeridNamesizeof(Name));
        
GetPlayerName(OtherPlayerOtherPlayerNamesizeof(OtherPlayerName));
        
format(Msgsizeof(MSg), "%s Slaps %s because %s"NameOtherPlayerNameMessage);
        
SendClientMessageToAll(0xFFFFFFFFMsg);
        
SetPlayerHealth(OtherPlayer75);
    }
    else
    {
        return 
0;
    }
    return 
1;

Reply


Messages In This Thread
Nick problem - by Djumza - 05.04.2014, 13:40
Re: Nick problem - by MArkvane092 - 05.04.2014, 13:43
Re: Nick problem - by UfsDev - 05.04.2014, 13:44
Re: Nick problem - by Konstantinos - 05.04.2014, 13:45
Re: Nick problem - by UfsDev - 05.04.2014, 13:50
Re: Nick problem - by Djumza - 05.04.2014, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)