06.04.2013, 17:51
not showing the names just showing the vip level.here the command
Код:
COMMAND:vips(playerid, params[]) { new Count; new str[45]; new playername[MAX_PLAYER_NAME]; SendClientMessage(playerid, -1, "Vip online:"); for(new i = 0; i < MAX_PLAYERS; i ++) { if(Pinfo[i][VipLevel] >= 1) { Count ++; format(str, sizeof str, "%s %s",playername,VipName(i)); SendClientMessage(playerid, -1, str); } } if(Count < 1) SendClientMessage(playerid, -1, "No Vip Online!"); // Let the server know that this was a valid command return 1; }