05.11.2009, 07:55
I suggest you to use zcmd and sscanf
It will look like:
It will look like:
pawn Код:
cmd(givescore, playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new id;
if(sscanf(params,"i",id)) SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /givescore [id]");
else SetPlayerScore(id,GetPlayerScore(id)+1);
return 1;
}
return 0;
}