26.07.2016, 17:41
Can someone make me this dialogue? Thanks.
Код:
COMMAND:vipid(playerid, params[]) { new name[24], string[128]; new vips = 0; SendClientMessage(playerid,0x2E8B57AA,"Vхrgus olevad vipid:"); for(new i = 0; i < MAX_PLAYERS; i++){ if (IsPlayerConnected(i)){ if(PlayerInfo[i][pVipLevel] >= 1){ GetPlayerName(i, name,sizeof(name)); format(string,sizeof string," ", name, PlayerInfo[i][pVipLevel]); format(string,sizeof string,"%s - VIP Level: %d", name, PlayerInfo[i][pVipLevel]); SendClientMessage(playerid,0xFF4500AA,string); vips ++; } } } if(vips== 0){ SendClientMessage(playerid, 0xFF0000AA, "Ьhtegi vipi pole vхrgus!"); } return 1; }