if(strcmp(cmd, "/jail", true) == 0) { if(IsAdmin == 1) { new PlayerID; new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "Usage: /jail [playerid]"); return 1; } SetPlayerPos(PlayerID,197.5662,175.4800,1003.0234); SendClientMessage(PlayerID, COLOR_RED, "You have been jailed by an admin!"); } else { SendClientMessage(playerid, COLOR_RED, "You are not an admin!"); } return 1; } if(strcmp(cmd, "/unjail", true) == 0) { if(IsAdmin == 1) { new PlayerID; new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "Usage: /unjail [playerid]"); return 1; } SetPlayerPos(PlayerID,2232.0354,2453.2104,10.8727); SendClientMessage(PlayerID, COLOR_GREEN, "You have been released by an admin!"); } else { SendClientMessage(playerid, COLOR_RED, "You are not an admin!"); } return 1; }