Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("===================================");
- print(" Basic Car Engine System by Djeric");
- print("===================================");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER)
- {
- TogglePlayerControllable(playerid, 0);
- SendClientMessage(playerid, -1, "/upali za paljenje motora");
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- SendClientMessage(playerid,-1,"Izasao si iz auta!");
- return 1;
- }
- CMD:upali(playerid,params[])
- {
- #pragma unused params
- if(IsPlayerInAnyVehicle(playerid) == 1)
- {
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid,-1,"Upalio si automobil");
- }
- else return SendClientMessage(playerid,-1,"Nema iskoriscavanja komande!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment