Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:aerols(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1642.3228,-2237.8171,13.4983)) return SCM(playerid, -1, "SERVER: Nu esti la aeroportul din Los Santos");
- if(PlayerInfo[playerid][pWantedLevel] >= 1) return SCM(playerid, -1, "SERVER: Nu poti folosi aceasta comanda deoarece ai wanted.");
- ShowPlayerDialog(playerid, 7777, DIALOG_STYLE_TABLIST_HEADERS, "Aeroport Los Santos",
- "Linia\tPret\n\
- Los Santos - San Fierro\t$20,000\t100\n\
- Los Santos - Las Venturas\t$20,000",
- "Select", "Cancel");
- return 1;
- }
- if(dialogid == 7777)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerInterior(playerid,1);//sf
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerPos(playerid, 1.7560,25.2154,1199.5938);
- SetTimer("aerolssftimer" ,20000 ,false);
- SetPlayerVirtualWorld(playerid, 0);
- GivePlayerCash(playerid,-1000);
- Update(playerid,pCashx);
- }
- case 1:
- {
- SetPlayerInterior(playerid,1);//lv
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerPos(playerid, 1.7560,25.2154,1199.5938);
- SetTimer("aerolslvtimer" ,20000 ,false);
- SetPlayerVirtualWorld(playerid, 1);
- GivePlayerCash(playerid,-1000);
- Update(playerid,pCashx);
- }
- }
- }
- return 1;
- }
- forward aerolslvtimer(playerid);//ls
- public aerolslvtimer(playerid)
- {
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 1673.0015,1447.8682,10.7867);
- SetPlayerVirtualWorld(playerid, 0);
- SendClientMessage(playerid, -1, "SERVER: Ai aterizat in orasul Las Venturas!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement