making a revive cmd
#11

Quote:
Originally Posted by Jes
Посмотреть сообщение
Can someone make this cmd in dcmd or strcmp command? thanks
That's easy but i think you'll get a tons of errors because maybe you are using another admin variable and enums, btw try maybe it work , also dcmd is too old and outdated you can move to ZCMD or YCMDS which are most faster command processors
pawn Код:
dcmd_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)