/stats multi id
#5

pawn Код:
CMD:stats(playerid, params[])
{
    if(GetPVarInt(playerid, "spawned") == 0) return SCM(playerid, COLOR_LIGHTBLUE, "Please spawn before doing any action.");
    if(GetPVarInt(playerid,"CmdTime") > GetTickCount()) return SCM(playerid,0xFF0000FF,"Please wait before using this command again.");
    new giveplayerid;
    if(sscanf(params,"u",giveplayerid)) return SCM(playerid,0xFF0000FF,"/stats [id / part of name]");
    if(giveplayerid == INVALID_PLAYER_ID) return SCM(playerid,0xFF0000FF,"Invalid player");

    new yourid = playerid;
    playerid = giveplayerid;
    new Float:gihp, Float:giar;
    GetPlayerHealth(playerid, gihp);
    GetPlayerArmour(playerid, giar);
    new temp[1500];
    new info[1500];
    // code
    // ...
    // ...
    // ...
    // ...
    ShowPlayerDialog(yourid, DIALOG_STATS, DIALOG_STYLE_MSGBOX,"{FFFFFF}Your Current Stats",info,"Close","");
    SetPVarInt(yourid,"CmdTime",GetTickCount()+5000);
    return 1;
}
Reply


Messages In This Thread
/stats multi id - by Face9000 - 16.10.2015, 20:36
Re: /stats multi id - by Abagail - 16.10.2015, 21:01
Re: /stats multi id - by Face9000 - 17.10.2015, 09:25
Re: /stats multi id - by Face9000 - 18.10.2015, 20:04
Re: /stats multi id - by Jefff - 18.10.2015, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)