SetPlayerCash
#2

pawn Код:
CMD:setplayercash(playerid, params[])
{
    new targetid, cash;
    if(sscanf(params, "ui", targetid, cash)) return SendClientMessage(playerid, -1, "Usage: /setplayercash [playerid] [cash]");
   
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "That player is not connected.");
   
    PlayerInfo[targetid][Cash] = cash;
    return 1;
}
Adjust variables and enums to your script.
Reply


Messages In This Thread
SetPlayerCash - by Mriss - 13.03.2014, 07:14
Re: SetPlayerCash - by Jack_Leslie - 13.03.2014, 07:19
Re: SetPlayerCash - by Bingo - 13.03.2014, 07:20
Re: SetPlayerCash - by Ceathor - 13.03.2014, 07:21
Re: SetPlayerCash - by RoboN1X - 13.03.2014, 07:23
Re: SetPlayerCash - by Ceathor - 13.03.2014, 07:26
Re: SetPlayerCash - by Mriss - 13.03.2014, 07:35
Re: SetPlayerCash - by iFarbod - 13.03.2014, 09:19
Re: SetPlayerCash - by iFarbod - 13.03.2014, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)