07.01.2014, 02:05
How To Make All This ZCMD Command To YCMD Command ?
I Have No Idea How To Convert It, Please.
I Have No Idea How To Convert It, Please.
Код:
CMD:ooc(playerid, params[]) { new string[128]; if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_RED, "Usage: /(o)oc [message]"); if(OOCStatus == 1) { if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "(([Global]%s: %s ))", pName2(playerid), params); SendClientMessageToAll(COLOR_LBLUE, string); } else { SendClientMessage(playerid, COLOR_RED, "> You are currently muted, if you believe this is a mistake, please make an appeal on forums."); } } else { SendClientMessage(playerid, COLOR_RED, "> Global chat is currently unavailable."); } return 1; } ALTCMD:o->ooc; //============================================================================== CMD:b(playerid, params[]) { new string[128]; if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, COLOR_RED, "Usage: /b message"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "(([Local] %s says : %s ))", pName2(playerid), string); SendLocalMessage(playerid, string, 20.0, COLOR_WHITE, COLOR_GRAY); } else { InfoBoxForPlayer(playerid, "Your muted, you can't send messages.\n If you think this is incorrect,\n Make an appeal on the forums."); } return 1; } //============================================================================== CMD:me(playerid, params[]) { new string[128]; if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, COLOR_RED, "Usage: /me text"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "* %s %s .*", pName2(playerid), string); SendLocalMessage(playerid, string, 20.0, COLOR_PURPLE, COLOR_PURPLE); } else { InfoBoxForPlayer(playerid, "Your muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; } //============================================================================== CMD:do(playerid, params[]) { new string[128]; if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, COLOR_RED, "Usage: /do text"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "* %s ((%s))", string, pName2(playerid)); SendLocalMessage(playerid, string, 20.0, COLOR_PURPLE, COLOR_PURPLE); } else { InfoBoxForPlayer(playerid, "Your muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; } //============================================================================== CMD:shout(playerid, params[]) { new string[128], msg[128]; if(sscanf(params, "s[128]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /(s)hout text"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "%s shouts: %s ", pName2(playerid), msg); SendLocalMessage(playerid, string, 40.0, COLOR_WHITE, COLOR_WHITE); } else { InfoBoxForPlayer(playerid, "Your muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; } ALTCMD:s->shout; //============================================================================== CMD:low(playerid, params[]) { new string[128], msg[128]; if(sscanf(params, "s[128]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /low text"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "* %s ((%s))", msg, pName2(playerid)); SendLocalMessage(playerid, string, 3.0, COLOR_GREY, COLOR_GREY); } else { InfoBoxForPlayer(playerid, "You are muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; } //============================================================================== CMD:whisper(playerid, params[]) { new string[128], msg[128], pID; if(sscanf(params, "us[128]", pID,msg)) return SendClientMessage(playerid, COLOR_RED, "> Correct usage: /whisper playerid message."); if(PlayerInfo[playerid][Muted] == 0) { if(IsPlayerInRangeOfPlayer(playerid, pID, 5)) { format(string, sizeof(string), "%s whispers: %s", pName2(playerid), msg); SendClientMessage(pID, COLOR_WHITE, string); format(string, sizeof(string), "* %s gets close to %s and whispers to him. *", pName2(playerid), pName2(pID)); SendLocalMessage(playerid, string, 20.0, COLOR_PURPLE, COLOR_PURPLE); } else { InfoBoxForPlayer(playerid, "> You are too far away from this person."); } } else { InfoBoxForPlayer(playerid, "You are muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; } //============================================================================== CMD:pm(playerid, params[]) { new pID, pmmsg[128], string[128]; if(sscanf(params, "us[128]", pID, pmmsg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /pm playerid message"); if(PlayerInfo[playerid][Muted] == 0) { format(string, sizeof(string), "[PM from [%i] %s]: %s", playerid, pName2(playerid), pmmsg); SendClientMessage(pID, COLOR_YELLOW, string); format(string, sizeof(string), "[PM to [%i] %s]: %s", pID, pName2(pID), pmmsg); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_RED,"Your muted, you can't use this command.\n If you this this is incorrect,\n Make an appeal on the forums."); } return 1; }