Posts: 88
Threads: 16
Joined: Oct 2017
Quote:
Originally Posted by Amads
PHP Code:
SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
|
Quote:
Originally Posted by Escobabe
PHP Code:
CMD:setcash(playerid,params[])
{
new id, amount, str[128], pname[MAX_PLAYER_NAME];
if(sscanf(params,"ui",id,amount)) return SendClientMessage(playerid,-1,"USAGE: /setcash [playerid] [amount]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"That player is ot connected.");
GivePlayerMoney(playerid, amount);
PlayerInfo[playerid][pMoney] = amount;
format(str,sizeof(str), "%s has given you %d$",pname,amount);
SendClientMessage(id,-1,str);
return 1;
}
|
Thx but I wanna set the money on logging in without a command
Like the Score - enum (look up)