making a revive cmd
#9

Can someone make this cmd in dcmd or strcmp command? thanks

Quote:

CMD:revive(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /revive [playerid]");

if(IsPlayerConnected(giveplayerid))
{
if(GetPVarInt(giveplayerid, "Injured") == 1)
{
format(string, sizeof(string), " You have revived %s.", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
SendClientMessageEx(giveplayerid, COLOR_WHITE, "You have been revived by an Admin.");

KillEMSQueue(giveplayerid);
ClearAnimations(giveplayerid);
SetPlayerHealth(giveplayerid, 100);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "That player is not injured!");
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}

Reply


Messages In This Thread
making a revive cmd - by Jes - 12.12.2013, 17:52
Re: making a revive cmd - by dannyk0ed - 12.12.2013, 17:54
Re: making a revive cmd - by doreto - 12.12.2013, 17:56
Re: making a revive cmd - by Jes - 12.12.2013, 17:56
Re: making a revive cmd - by SilentSoul - 12.12.2013, 17:57
Re: making a revive cmd - by Jes - 12.12.2013, 18:05
Re: making a revive cmd - by SilentSoul - 12.12.2013, 18:07
Re: making a revive cmd - by Ada32 - 12.12.2013, 18:08
Re: making a revive cmd - by Jes - 12.12.2013, 18:09
Re: making a revive cmd - by Kells - 12.12.2013, 18:12
Re: making a revive cmd - by SilentSoul - 12.12.2013, 18:12
Re: making a revive cmd - by Jes - 13.12.2013, 10:47
Re: making a revive cmd - by Jes - 13.12.2013, 10:57
Re: making a revive cmd - by SilentSoul - 13.12.2013, 11:07

Forum Jump:


Users browsing this thread: 1 Guest(s)