CMD:omanagers(playerid, params[])
return 1;
PHP код:
|
This is by no means the right place to post if you're simply requesting a script. Is there a certain part of the script that you're confused about or are you just looking for a hand out? |
Calling yourself a scripter whilst you can't make a single command, please bro. |
no need to thank me __________________ Scripting Help in a nutshell |
wow, what a clever^ yeah btw you are right, he need commands " omanagers " so you are giving him the CMDmanagers, nice xD |
Maybe show us your org manager code? And we try to make /omanagers according to it. |
/** This Is My Own CMD I Created In 10 Min **/ #include <a_samp> #include <zcmd> #define OM_LEVEL_1 "Org Manager" stock OLVL(lvl) { new string[128]; switch(lvl) { case 1: { format(string, 128, "%s %s", LEVEL_1_COLOR, OM_LEVEL_1); } } return string; } stock RPN(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); return name; } CMD ![]() { new moneys1, string[128]; for (new i = 0; i < PLAYERS; i++) { if (IsPlayerConnected2(i)) { if (olvl[playerid] > 0) { moneys1++; } else if(olvl[playerid] == 1) { if(olvl[playerid] > 0) { moneys1++; } } } } if (moneys1 != 0) { SendClientMessage(playerid, COLOR_ADMIN, "• • Online Org Managers • •"); new p=6; while (p > 0) { for (new i = 0; i < PLAYERS; i++) { if (olvl[i] == p) { format(string, 128, "{FFFFFF}%s", RPN(i), OLVL(p),p); SendClientMessage(playerid, COLOR_WHITE, string); } else if(olvl[i] == p) { if(olvl[playerid] == 1) { format(string, 128, "{FFFFFF}%s", RPN(i), OLVL(p),p); SendClientMessage(playerid, COLOR_WHITE, string); } } } p--; } } else SendClientMessage(playerid, COLOR_RED, "There are currently no Org Managers online."); return 1; } |