- 0
Ajutor plizz
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
GameR
Am si eu system de admin Ladmin..
Si vreau sa fac sa apara asa cum apare /cmds sa apara /vips si nu stiu cum sa fac ca nu imi place cum apare /vips in chat :| ma puteti ajuta va rog?
Uitati aici DCMD_VIPS
dcmd_vips(playerid,params[]) { #pragma unused params new Count[2], i, string[128]; for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { if(PlayerInfo[i][Vip] > 0) Count[0]++; } if( (Count[0] == 0 && Count[1] == 0) || (Count[0] == 0 && Count[1] >= 1 && PlayerInfo[playerid][Vip] == 0) ) return SendClientMessage(playerid, blue, "No V.I.P Members online"); if(Count[0] == 1) { for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Vip] > 0) { format(string, sizeof(string), "V.I.P Members: (%d)%s [%d]", i, PlayerName2(i), PlayerInfo[i][Vip] ); SendClientMessage(playerid, blue, string); } } if(Count[0] > 1) { new x; format(string, sizeof(string), "V.I.P's: "); for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Vip] > 0) { format(string,sizeof(string),"%s(%d)%s [%d]",string,i,PlayerName2(i),PlayerInfo[i][Vip]); x++; if(x >= 5) { SendClientMessage(playerid, blue, string); format(string, sizeof(string), "Vips: "); x = 0; } else format(string, sizeof(string), "%s, ", string); } if(x <= 4 && x > 0) { string[strlen(string)-3] = '.'; SendClientMessage(playerid, blue, string); } } return 1; }2 answers to this question
Recommended Posts