17.04.2014, 21:20
i have no idea what to convert this part to not sure if i need to or what but anyways can you guys tell me.
Код:
COMMAND:ooc(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(sscanf(params,"s[128]", string)) { SendClientMessage(playerid, COLOR_WHITE2, "Function: {FFFFFF}/ooc off/on "); return 1; } if(strcmp(tmp,"off",true) == 0) // this part { ooc = 0; SendClientMessageToAll(COLOR_RED,"[OOC]: Disabled"); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); return 1; } else if(strcmp(tmp,"on",true) == 0) // this part { ooc = 1; SendClientMessageToAll(COLOR_PINKY,"[OOC]: Enabled"); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); return 1; } } else { SendClientMessage(playerid,COLOR_WHITE2,"Your are not a high enough rank"); } return 1; }