Command dont work properly
#1

Hello guys.
When i join game i type all of these and this work but when i try to /heal id 1 they said me he not in game but string says to me that id 1 is healed sry for my bad english
pawn Код:
CMD:heal(playerid,params[])
{
new targetid;
new name[MAX_PLAYER_NAME];
{
if(IsPlayerAdmin(playerid) == 0)
{
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Niste ovlasteni da koristite ovu komandu!");
}
else if(IsPlayerAdmin(playerid) == 1)
{
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, -1,""CRVENA"[BD:RP]"BELA"Koristi /heal [ID]");
}
if(!IsPlayerConnected(targetid))
{
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Trazeni igrac nije online!");
{
SetPlayerHealth(playerid,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)