Command dont work properly
#4

Use it:

PHP код:
CMD:heal(playerid,params[])
{
    new 
targetidname[MAX_PLAYER_NAME];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Niste ovlasteni da koristite ovu komandu!");
    if(
sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1,""CRVENA"[BD:RP]"BELA"Koristi /heal [ID]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1,"Player is not logged in!");
    
SetPlayerHealth(targetid,100);
    new 
string[60];
    
GetPlayerName(playerid,name,sizeof(name));
    
format(string,sizeof(string), ""CRVENA"[BD:RP]"BELA"Izlecili ste igraca %s!",name);
    
SendClientMessage(playerid,-1,string);
    
    return 
1;

Reply


Messages In This Thread
Command dont work properly - by Dejan12345 - 15.03.2018, 17:05
Re: Command dont work properly - by Dejan12345 - 15.03.2018, 17:15
Re: Command dont work properly - by KaRToNiToS - 15.03.2018, 17:15
Re: Command dont work properly - by rolex - 15.03.2018, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)