08.02.2010, 11:42
Ok I fixed somethign now. The problem I have now is this:
When I do /giveperm [id] it just says USAGE:blablabla.
And it doesn't say: done and I don'thave the permission.
What do I have to edit in this script?
When I do /giveperm [id] it just says USAGE:blablabla.
And it doesn't say: done and I don'thave the permission.
What do I have to edit in this script?
Код:
if(strcmp(cmd,"/giveperm", true) == 0) { if(IsPlayerAdmin(playerid)) { if(!strlen(tmp)) return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /giveperm [playerid]"); giveplayerid = strval(tmp); if(IsPlayerConnected(giveplayerid)) { SendClientMessage(playerid, 0xE3E3E3FF, "Done!"); SkinPermission[giveplayerid] = true; } else if (!IsPlayerConnected(giveplayerid)) { SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: Player not Conected!"); } } else { SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: You are not an Administrator!"); } return 1;