Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new tramsf;
- new L1B1;
- new L2B1;
- new L1B2;
- new L2B2;
- new L3B1;
- new L4B1;
- new L5B1;
- new L5B2;
- new L6B1;
- new L7B1;
- new L8B1;
- new caddy;
- new DIALOG_LSLINE1;
- new DIALOG_LSLINE2;
- new DIALOG_LSLINE3;
- new DIALOG_LSLINE4;
- new DIALOG_LVLINE5;
- new DIALOG_LVLINE6;
- new DIALOG_LVLINE7;
- new DIALOG_LVLINE8;
- public OnFilterScriptInit()
- {
- ConnectNPC("tramsf","tram");
- ConnectNPC("L1B1","L1B1");
- ConnectNPC("L2B1","L2B1");
- ConnectNPC("L1B2","L1B2");
- ConnectNPC("L2B2","L2B2");
- ConnectNPC("L3B1","L3B1");
- ConnectNPC("L4B1","L4B1");
- ConnectNPC("L5B1","L5B1");
- ConnectNPC("L5B2","L5B2");
- ConnectNPC("L6B1","L6B1");
- ConnectNPC("L7B1","L7B1");
- ConnectNPC("L8B1","L8B1");
- ConnectNPC("caddy","caddy");
- tramsf = AddStaticVehicle(449,-2006.5166,38.7075,32.3092,1.3508,1,1);
- L1B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L2B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L1B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L2B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L3B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L4B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L5B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L5B2 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L6B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L7B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- L8B1 = AddStaticVehicle(431,-1988.0057,116.6116,27.6411,0.6686,75,59);
- caddy = AddStaticVehicle(457,-1988.0057,116.6116,27.6411,0.6686,75,59);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(!IsPlayerNPC(playerid)) return 0;
- new npcname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, npcname, sizeof(npcname));
- new playername[64];
- GetPlayerName(playerid,playername,64);
- if(!strcmp(playername,"tramsf",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, tramsf, 0);
- new Text3D:tramsfx = Create3DTextLabel("SFTram",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(tramsfx, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L1B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L1B1, 0);
- new Text3D:L1B1x = Create3DTextLabel("Line 1",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L1B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L2B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L2B1, 0);
- new Text3D:L2B1x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L2B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L1B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L1B2, 0);
- new Text3D:L1B2x = Create3DTextLabel("Line 1",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L1B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L2B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L2B2, 0);
- new Text3D:L2B2x = Create3DTextLabel("Line 2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L2B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L3B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L3B1, 0);
- new Text3D:L3B1x = Create3DTextLabel("Line 3",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L3B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L4B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L4B1, 0);
- new Text3D:L4B1x = Create3DTextLabel("Line 4",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L4B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L5B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L5B1, 0);
- new Text3D:L5B1x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L5B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L5B2",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L5B2, 0);
- new Text3D:L5B2x = Create3DTextLabel("Line 5",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L5B2x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L6B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L6B1, 0);
- new Text3D:L6B1x = Create3DTextLabel("Line 6",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L6B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L7B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L7B1, 0);
- new Text3D:L7B1x = Create3DTextLabel("Line 7",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L7B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"L8B1",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, L8B1, 0);
- new Text3D:L8B1x = Create3DTextLabel("Line 8",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(L8B1x, playerid, 0.0, 0.0, 0.5);
- }
- else if(!strcmp(playername,"caddy",true)) {
- SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
- PutPlayerInVehicle(playerid, caddy, 0);
- new Text3D:caddyx = Create3DTextLabel("High Speed Hardcore Gulf Caddy",0x33AA33AA,30.0,40.0,50.0,40.0,0);
- Attach3DTextLabelToPlayer(caddyx, playerid, 0.0, 0.0, 0.5);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- if(!strcmp("/lslinie1",cmd,true) || !strcmp("/lsline1",cmd,true))
- {
- ShowPlayerLSLine1Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lslinie2",cmd,true) || !strcmp("/lsline2",cmd,true))
- {
- ShowPlayerLSLine2Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lslinie3",cmd,true) || !strcmp("/lsline3",cmd,true))
- {
- ShowPlayerLSLine3Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lslinie4",cmd,true) || !strcmp("/lsline4",cmd,true))
- {
- ShowPlayerLSLine4Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lvlinie5",cmd,true) || !strcmp("/lvline5",cmd,true))
- {
- ShowPlayerLVLine5Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lvlinie6",cmd,true) || !strcmp("/lvline6",cmd,true))
- {
- ShowPlayerLVLine6Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lvlinie7",cmd,true) || !strcmp("/lvline7",cmd,true))
- {
- ShowPlayerLVLine7Dialog(playerid);
- return 1;
- }
- if(!strcmp("/lvlinie8",cmd,true) || !strcmp("/lvline8",cmd,true))
- {
- ShowPlayerLVLine8Dialog(playerid);
- return 1;
- }
- return 0;
- }
- stock ShowPlayerLSLine1Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LSLINE1,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie1 Haltestellen","1 LSPD\n2 LS Bank\n3 LS BSN\n4 LS Krankenhaus\n5 LS Television\n6 LS Pay n Spray Beach\n7 LS Beach\n8 LS Airport\n9 LS Pay n Spray / Haircutter\n10 LS PD Tankstelle\n11 LSPD","OK","OK");
- }
- stock ShowPlayerLSLine2Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LSLINE2,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie2 Haltestellen","1 LS PD Tankstelle\n2 LS Airport\n3 LS East Beach\n4 LS Forum\n5 LS Grove Street / Cluckin Bell\n6 LS Bank\n7 LS Krankenhaus\n8 LS Fahrschule\n9 LSPD\n10 LS PD Tankstelle","OK","OK");
- }
- stock ShowPlayerLSLine3Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LSLINE3,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie3 Haltestellen","1 LS Spawn\n2 LS Krankenhaus\n3 LS Television\n4 LS - Mount Chilliad Petrol Station\n5 Mount Chilliad 69 - LS\n6 LS Village\n7 LS BSN\n8 LS Bank\n9 LS Krankenhaus\n10 LS Spawn","OK","OK");
- }
- stock ShowPlayerLSLine4Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LSLINE4,DIALOG_STYLE_MSGBOX,"{FF7700}LSLinie4 Haltestellen","1 LS Spawn\n2 LSPD Tankstelle\n3 LS TheWellStackedPizza\n4 LS Bank\n5 LS Spawn","OK","OK");
- }
- stock ShowPlayerLVLine5Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LVLINE5,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie5 Haltestellen","1 LV Busstation\n2 LV VIP I\n3 LV VIP II\n4 LV International Airport\n5 LV Hotel - A\n6 LV Casino - B\n7 LV - PD\n8 LV Emerald Isle\n9 LV Spawn\n10 LV Ship\n11 LV Busstation","OK","OK");
- }
- stock ShowPlayerLVLine6Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LVLINE6,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie6 Haltestellen","1 LV Busstation\n2 LV International Airport\n3 LV Casino - B\n4 LS Bank\n5 LS Krankenhaus\n6 LS PD Tankstelle\n7 LS International Airport\n8 LS Spawn\n9 LS Spawn II\n10 LS Bank\n11 LV Spawn\n12 LV Ship\n13 LV Hotel - A\n14 LV Four Dragons\n15 LV Hafen\n16 LV Busstation Tankstelle\n17 LV Busstation","OK","OK");
- }
- stock ShowPlayerLVLine7Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LVLINE7,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie7 Haltestellen","1 LV Casino - B\n2 LV Spawn\n3 LV International Airport\n4 LV Busstation\n5 LV VIP I\n6 LV VIP II\n7 LV Casino - B","OK","OK");
- }
- stock ShowPlayerLVLine8Dialog(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_LVLINE8,DIALOG_STYLE_MSGBOX,"{FF7700}LVLinie8 Haltestellen","1 LV International Airport\n2 SF International Airport\n3 LS International Airport\n4 LS Bank\n5 LV International Airport","OK","OK");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement