Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===================// Leave this in
- //===Credits To=====//
- //===Dolfwagos=====//
- //================//
- //=========INCLUDES===========
- #include <a_samp>
- //============================
- //=========DEFINES============
- #define green 0x008000FF //---this is the green colour Don't change it
- //============================
- new Gate;
- public OnGameModeInit()
- {
- CreateObject(18769, -2996.11, 471.04, 4.44, 0.00, 8.00, 0.00);
- CreateObject(18769, -3015.24, 471.42, 4.44, 0.00, 8.00, 178.27);
- CreateObject(5112, -3094.48, 471.62, 0.00, 0.00, 0.00, 0.00);
- CreateObject(4867, -3259.34, 460.69, 4.19, 0.00, 0.00, 0.00);
- CreateObject(8147, -3366.24, 442.44, 6.57, 0.00, 0.00, 0.00);
- CreateObject(8147, -3366.22, 480.47, 6.57, 0.00, 0.00, 0.00);
- CreateObject(8147, -3293.41, 552.69, 6.57, 0.00, 0.00, 270.09);
- CreateObject(8147, -3227.04, 552.62, 6.57, 0.00, 0.00, 270.09);
- CreateObject(8210, -3154.08, 525.11, 6.57, 0.00, 0.00, 270.19);
- CreateObject(8147, -3224.26, 370.44, 6.57, 0.00, 0.00, 270.09);
- CreateObject(8147, -3293.27, 370.45, 6.57, 0.00, 0.00, 270.09);
- CreateObject(8210, -3153.92, 508.17, 6.57, 0.00, 0.00, 270.19);
- CreateObject(8210, -3153.66, 434.88, 6.57, 0.00, 0.00, 270.19);
- CreateObject(8210, -3153.45, 397.27, 6.57, 0.00, 0.00, 270.19);
- CreateObject(3605, -3341.54, 396.94, 10.30, 0.00, 0.00, 133.80);
- CreateObject(13754, -3357.90, 522.02, 2.68, 0.00, 0.00, 89.25);
- CreateObject(3601, -3250.93, 542.92, 3.88, 0.00, 0.00, 0.00);
- CreateObject(971, -3256.63, 545.90, 7.99, 0.00, 0.00, 270.66);
- CreateObject(3605, -3179.81, 394.89, 10.30, 0.00, 0.00, 207.90);
- CreateObject(16098, -3296.83, 535.34, 8.39, 0.00, 0.00, 271.00);
- CreateObject(16098, -3260.80, 388.41, 8.39, 0.00, 0.00, 271.00);
- CreateObject(3604, -3350.79, 429.82, 6.70, 0.00, 0.00, 93.39);
- CreateObject(3604, -3163.05, 430.84, 6.70, 0.00, 0.00, 268.60);
- CreateObject(3461, -3016.33, 480.89, 6.05, 0.00, 0.00, 0.00);
- CreateObject(3461, -3015.90, 462.36, 6.05, 0.00, 0.00, 0.00);
- CreateObject(1687, -3254.62, 548.98, 12.48, 0.00, 0.00, 358.95);
- CreateObject(1687, -3254.76, 546.82, 12.48, 0.00, 0.00, 358.95);
- CreateObject(1690, -3252.33, 538.24, 12.40, 0.00, 0.00, 269.20);
- CreateObject(1691, -3246.16, 545.58, 12.00, 0.00, 0.00, 0.00);
- CreateObject(1687, -3360.24, 518.16, 8.00, 0.00, 0.00, 268.45);
- CreateObject(5838, -3169.10, 537.48, 20.71, 0.00, 0.00, 0.00);
- CreateObject(10773, -3220.48, 528.22, 6.89, 0.00, 0.00, 320.17);
- CreateObject(10838, -3156.22, 472.01, 21.10, 0.00, 0.00, 0.00);
- CreateObject(621, -3313.61, 385.95, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3346.51, 420.10, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3361.75, 374.56, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3210.44, 395.47, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3162.79, 417.96, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3298.16, 544.84, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3297.76, 535.23, 2.62, 0.00, 0.00, 0.00);
- CreateObject(621, -3297.14, 525.20, 2.62, 0.00, 0.00, 0.00);
- CreateObject(1350, -3162.53, 466.13, 3.44, 0.00, 0.00, 274.61);
- CreateObject(1350, -3162.29, 477.37, 4.23, 0.00, 0.00, 83.36);
- CreateObject(3463, -3218.47, 393.14, 3.74, 0.00, 0.00, 9.78);
- CreateObject(3463, -3304.15, 391.02, 3.74, 0.00, 0.00, 9.78);
- CreateObject(3463, -3334.23, 532.93, 3.74, 0.00, 0.00, 9.78);
- CreateObject(3463, -3194.69, 533.19, 3.74, 0.00, 0.00, 9.78);
- CreateObject(3463, -3120.31, 471.59, 3.74, 0.00, 0.00, 92.25);
- CreateObject(3463, -3101.19, 471.58, 3.74, 0.00, 0.00, 92.25);
- CreateObject(3463, -3074.77, 471.66, 3.74, 0.00, 0.00, 92.25);
- CreateObject(3463, -3041.16, 471.66, 3.74, 0.00, 0.00, 92.25);
- CreateObject(3463, -3140.77, 471.59, 3.74, 0.00, 0.00, 92.25);
- CreateObject(971, -3153.86, 462.33, 7.75, 0.00, 0.00, 89.46);
- CreateObject(971, -3153.44, 480.88, 7.75, 0.00, 0.00, 89.46);
- Gate = CreateObject(969, -3153.72, 467.12, 4.50, 0.00, 0.00, 87.77);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext,"/open", true , 5) ==0)//--- You may change this to anything
- {
- MoveObject(Gate, -3153.5198, 476.7097, 4.4972, 5, -1000.0, -1000.0);
- SendClientMessage(playerid,green,"You have Opened the gate!");//--- this is the message when you open
- return 1;
- }
- if (strcmp(cmdtext,"/close", true , 6) ==0)//--- You may change this to anything
- {
- MoveObject(Gate, -3153.7246, 467.1180, 4.4972, 5, -1000.0, -1000.0);
- SendClientMessage(playerid,green,"You have Closed the gate!");//--- this is the message when you close
- return 1;
- }
- if (strcmp(cmdtext,"/house", true , 6) ==0)//--- You may change this to anything
- {
- SetPlayerPos(playerid,-3134.9043, 470.7294, 6.5521);
- SendClientMessage(playerid,green,"Welcome to the house!");//--- this is the message when you teleport
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment