05.02.2010, 12:48
Define something like this:
It should reset when the player connects, so add this on OnPlayerConnect:
Add the cmd:
And at last u need to make a command that gives the player permission(It should return HavePermission for player to 1)
Код:
HavePermission[MAX_PLAYERS];
Код:
HavePermission[playerid] = 0;
Код:
if(strcmp(cmd, "/changeskin", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsValidSkin(skin) || HavePermission[playerid] == 1) { new skin; tmp = strtok(cmdtext, idx); skin = strval(tmp); SetPlayerSkin(playerid, skin); } } return 1; }