18.12.2017, 15:58
Code:
new bool: GPS[MAX_PLAYERS]; CMD:gps(playerid, params[]) { if(GPS[playerid] == false) return SendClientMessage(playerid, -1,"Vocк nгo tem GPS"); ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "Global Positioning System", "{00FF00}»{FFFFFF} Palбcio Presidencial\n{00FF00}»{FFFFFF} Prefeitura SF\n{00FF00}»{FFFFFF} Prefeitura LV\n{00FF00}»{FFFFFF} Agencia de Empregos\n{00FF00}»{FFFFFF} Loja de Utilitarios\n{00FF00}»{FFFFFF} Detran\n{00FF00}»{FFFFFF} Agencia Bancбria\n{00FF00}»{FFFFFF} Imobiliaria\n{00FF00}»{FFFFFF} Ottos Car's\n{00FF00}»{FFFFFF} Wang Car's\n{00FF00}»{FFFFFF} Area de Caзa\n{00FF00}»{FFFFFF} Departamento Policial\n{00FF00}»{FFFFFF} Shopping", "GPS", "Sair"); return 1; }
Code:
GPS[playerid] = true;