- 0
Restrictie.
-
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
ciprian2013
Problema intalnita (descriere):Cum as putea sa fac la comanda /buyvehicle sa imi verifice ca jucatorul x are deja un vehicul cumparat,si sa ii trimita un mesaj.
Ero(area / rile) / warning-(ul / urile)://
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:buyvehicle(playerid, params[]) { if ( GetPVarInt( playerid, "AccountLocked" ) == 1 ) return SCM( playerid, COLOR_WHITE, "Contul tau este blocat, deblocheaza-l folosind comanda /unlockacc." ); if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in."); if(IsPlayerInRangeOfPoint(playerid,5.0,2132.0627,-1150.6255,24.1395)) { ShowPlayerDialog(playerid, DIALOG_DSG, DIALOG_STYLE_LIST, "Buy a vehicle", "Cheap cars\nRegular cars\nExpensive cars\nBikes\nAir Vehicles","Select", "Cancel"); } else SendClientMessage(playerid, COLOR_ERROR,"You are not at dealership."); return 1; }
Link to comment
Share on other sites
4 answers to this question
Recommended Posts