- 0
Problema /viplist
-
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
[XSR]NexT
Salut!
Deci am o problema suntem mai multi vipi pe server si cand folosesc /viplist ma vad doar pe mine :| de ce?
Ce am gresit!
Cmd:
dcmd_viplist(playerid,params[]) { #pragma unused params if(AccInfo[playerid][LoggedIn] == 1) { new bool:First2 = false; new CountVL, i,string[128]; new adminname[MAX_PLAYER_NAME]; new pName2[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName2, sizeof(pName2)); for(i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0) CountVL++; } if(CountVL == 0) return SendClientMessage(playerid,red, "No players have VIP Account!"); for(i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && AccInfo[i][pVip] > 0) { if(AccInfo[i][pVip] > 1) { switch(AccInfo[i][pVip]) { case 1: AccType = "Silver"; case 2: AccType = "Gold"; case 3: AccType = "Premium"; } } GetPlayerName(i, adminname, sizeof(adminname)); if(!First2) { format(string, sizeof(string),"Vips {FC0303}: {00CEFC}%s", pName2); First2 = true; } else format(string,sizeof(string),"%s",string,pName2); } } return SendClientMessage(playerid,green,string); } else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands"); }3 answers to this question
Recommended Posts