Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define SCM SendClientMessage
- new gate1,gate2,garage1,bool:mainigais,bool:maingarage;
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- gate1 = CreateObject(18755, -2095.82520, 692.07037, 80.99214, 0.00000, 0.00000, -90.00000);
- gate2 = CreateObject(19758, -2095.99780, 691.04919, 86.47723, 0.00000, 180.00000, -90.00000);
- garage1 = CreateObject(19325, -2078.51416, 712.22144, 69.31409, 0.00000, 0.00000, 0.00000);
- CreateObject(19376, -2099.52466, 699.34290, 78.97420, 0.00000, 90.00000, 90.00000);
- CreateObject(19376, -2109.12720, 698.56927, 78.97420, 0.00000, 90.00000, 90.00000);
- CreateObject(19376, -2118.73145, 698.58691, 78.97420, 0.00000, 90.00000, 90.00000);
- CreateObject(19376, -2124.42944, 698.26086, 78.95189, 0.00000, 90.00000, 90.00000);
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- stock checkName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- return (!strcmp(name,"CREED",true));
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp("/lift", cmdtext, true))
- {
- if(!checkName(playerid)) return SCM(playerid,-1,"You're not allowed, to use this command!");
- switch(mainigais)
- {
- case false:
- {
- SCM(playerid, 0x0084F5FF,"Lift down!");
- MoveObject(gate1, -2095.84399, 692.09149, 67.79585, 4);
- MoveObject(gate2, -2095.99780, 691.04919, 73.26807, 4);
- }
- case true:
- {
- SCM(playerid, 0xFF0032FF,"Lift up!");
- MoveObject(gate1, -2095.82520, 692.07037, 80.99214, 4);
- MoveObject (gate2, -2095.99780, 691.04919, 86.47723, 4);
- }
- }
- mainigais = !mainigais;
- return 1;
- }
- if(!strcmp("/garage1", cmdtext, true))
- {
- if(!checkName(playerid)) return SCM(playerid,-1,"You're not allowed, to use this command!");
- switch(maingarage)
- {
- case false:
- {
- SCM(playerid, 0x0084F5FF,"Garage open!");
- MoveObject (garage1, -2080.18750, 712.22345, 72.29829, 2);
- }
- case true:
- {
- SCM(playerid, 0xFF0032FF,"Garage close!");
- MoveObject (garage1, -2078.51416, 712.22144, 69.31409, 4);
- }
- }
- maingarage = !maingarage;
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement