Need help
#4

pawn Код:
COMMAND:stats(playerid, params[])
{
    new pID;
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Usage: /stats <playerid>");
    if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "This player is not connected");
    new string[128], Float:armour, Float:health;
    GetPlayerHealth(pID,health);
    GetPlayerArmour(pID, armour);
    format(string, sizeof(string), "Health: %0.f - Armour: %.2f", health,armour);
    SendClientMessage(playerid, -1, string);
    return 1;
}
with zcmd & sscanf
Reply


Messages In This Thread
Need help - by SpiderWalk - 08.04.2011, 14:24
Re: Need help - by SpiderWalk - 08.04.2011, 14:35
Re: Need help - by XFlawless - 08.04.2011, 14:37
Re: Need help - by xir - 08.04.2011, 15:11
Re: Need help - by Malcor - 08.04.2011, 15:14

Forum Jump:


Users browsing this thread: 2 Guest(s)