08.01.2011, 23:20
pawn Код:
dcmd_setfun(playerid, params[])
{
new id, amount;
if(sscanf(params, "ud", id, amount)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /setfun playerid amount");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");
else
{
funpoints[id] = amount;
SendClientMessage(playerid, 0xFF0000AA,"you've setted funpoints");
SendClientMessage(id, 0x00FF00AA, "your funpoints are setted");
}
return 1;
}