12.07.2010, 21:54
pawn Код:
cmd(wanted, playerid, params)
{
new targetid, level;
if(sscanf(params, "dd", targetid, level)) return 0; // They didn't type the full syntax
else
{
if(targetid == INVALID_PLAYER_ID) return 0; // The player they're trying to do this to isn't connected
if(level < 0 || level > 6) return 0; // Level is too high / low
SetPlayerWantedLevel(targetid, level);
}
return 1;
}