zcmd help
#6

pawn Code:
CMD:setplayerhealth(playerid,params[])
{
     new gid;
     if(sscanf(params,"u",gid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE:/setplayerhealth [PlayerID]");
     if(!IsPlayerConnected(gid)) return SendClientMessage(playerid, COLOR_WHITE,"Player ID given is not connected.");
     new Float:rand = random(100);
     SetPlayerHealth(gid, rand);
     new str[128], name[MAX_PLAYER_NAME];
     GetPlayerName(gid, name, MAX_PLAYER_NAME);
     format(str, 128, "You have set %s's health to %f", name, rand);
     return SendClientMessage(playerid, COLOR_WHITE, str);
}
Reply


Messages In This Thread
zcmd help - by zQrba. - 26.07.2012, 15:46
Re: zcmd help - by Cxnnor - 26.07.2012, 15:51
Re: zcmd help - by zQrba. - 26.07.2012, 16:17
Re: zcmd help - by zQrba. - 26.07.2012, 16:36
Re: zcmd help - by MicroD - 26.07.2012, 16:38
Re: zcmd help - by maramizo - 26.07.2012, 17:02
Re: zcmd help - by Kindred - 26.07.2012, 17:09

Forum Jump:


Users browsing this thread: 2 Guest(s)