02.05.2016, 17:08
Hello, I want to set PVarInt to player in game, but command doesn't work, help me please
PHP код:
CMD:setpvar(playerid, params[])
{
if(IsPlayerAnAdmin(playerid,3))
{
new toplayerid, amount, string[64];
if (!sscanf(params, "uci", toplayerid, string, amount))
{
if (toplayerid != INVALID_PLAYER_ID)
{
new message[200];
SetPVarInt(toplayerid,string,amount);
}
else SCM(playerid,RED,"Bad ID");
}
else SCM(playerid,RED,"INFO: /setpvar <playerid> <PVarInt> <number>");
}
else SCM(playerid,RED,"You are not admin!");
return 1;
}