Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //includes
- #include <a_samp>
- #include <zcmd>
- #include <fly>
- #include <sscanf2>
- //defines obligatori
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- //defines
- #define SCM SendClientMessage
- #define SCMTOALL SendClientMessageToAll
- #define COLOR_GREEN 0x7DAB57FF
- //new
- new FarmCars[3];
- new FarmCP[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- FarmCars[0] = CreateVehicle(531, -373.4141, -1422.6749, 25.7817, -2.1000, -1, -1, 100);
- FarmCars[1] = CreateVehicle(531, -373.4141, -1417.8628, 25.7817, -2.8800, -1, -1, 100);
- FarmCars[2] = CreateVehicle(531, -373.4141, -1427.2970, 25.7817, -2.1000, -1, -1, 100);
- SetGameModeText("rpg.gamers.ro v0.1");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- FarmCP(playerid) = 0;
- SetPlayerPos(playerid,1799.2095, -1866.3105, 13.5716);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- InitFly(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Bine ai venit!");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(vehicleid == FarmCars[0] || vehicleid == FarmCars[1] || vehicleid == FarmCars[2])
- {
- DisablePlayerCheckpoint(playerid);
- FarmCP(playerid) = 0;
- SetVehicleToRespawn(vehicleid);
- SCM(playerid, -1, "Jobul tau a esuat!");
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(vehicleid == FarmCars[0] || vehicleid == FarmCars[1] || vehicleid == FarmCars[2])
- {
- FarmCP(playerid) = 1;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, -384.6528, -1389.7775, 25.8392, 3.0);
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(FarmCP(playerid) == 1)
- {
- DisablePlayerCheckpoint(playerid);
- FarmCP(playerid) = 2;
- SetPlayerCheckpoint(playerid, -384.5160, -1379.8358, 25.8392, 3.0);
- }
- else if(FarmCP(playerid) = 2)
- {
- DisablePlayerCheckpoint(playerid);
- FarmCP(playerid) = 3;
- SetPlayerCheckpoint(playerid, -384.3154, -1373.1550, 25.8392, 3.0);
- }
- else if(FarmCP(playerid) = 3)
- {
- DisablePlayerCheckpoint(playerid);
- FarmCP(playerid) = 0;
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- SCM(playerid, -1, "Ai primit $10.000 pentru ca ai terminat de muncit");
- GivePlayerMoney(playerid, 10000);
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:healme(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, 0xBA3A7CFF, "You are healed");
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0x756553FF, "You are killed");
- return 1;
- }
- CMD:gmx(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SendRconCommand("gmx");
- return 1;
- }
- CMD:aonduty(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SetPlayerSkin(playerid, 271);
- SendClientMessage(playerid, 0x64705AFF, "Ai activat aduty");
- return 1;
- }
- CMD:aoffduty(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SetPlayerSkin(playerid, 7);
- SendClientMessage(playerid, 0x64705AFF, "Ai dezactivat aduty");
- return 1;
- }
- CMD:inf(playerid, parmas[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- new Float:x, Float:y, Float:z, Float:az;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, az);
- CreateVehicle(411, x+5, y+5, z, az, -1, -1, 180);
- return 1;
- }
- CMD:nrg(playerid, parmas[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- new Float:x, Float:y, Float:z, Float:az;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, az);
- CreateVehicle(522, x+5, y+5, z, az, -1, -1, 180);
- return 1;
- }
- CMD:gotospawn(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SendClientMessage(playerid, 0x4D5ABDFF, "Teleported");
- return 1;
- }
- CMD:getdeagle(playerid, params[])
- {
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- if(GetPlayerMoney(playerid) <2400) return SendClientMessage(playerid,0xAA3333AA, "Nu ai $2400");
- GivePlayerWeapon(playerid, 24, 999);
- SendClientMessage(playerid, 0x14A348FF, "Arma a fost primita.");
- return 1;
- }
- CMD:getm4(playerid, params[])
- {
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- if(GetPlayerMoney(playerid) <3100) return SendClientMessage(playerid,0xAA3333AA, "Nu ai $3100");
- GivePlayerWeapon(playerid, 31, 999);
- SendClientMessage(playerid, 0x14A348FF, "Arma a fost primita.");
- return 1;
- }
- CMD:owner(playerid, params[])
- {
- SCM(playerid, 0xF21313FF, "Ownerul principal este Bogdy");
- return 1;
- }
- CMD:panel(playerid, params[])
- {
- SCM(playerid, 0x6E6E6EFF, "Panel-ul server-ului este xplaygamers.ro/panel te rog sa il vizitezi si tu.");
- return 1;
- }
- CMD:forum(playerid, params[])
- {
- SCM(playerid, 0x6E6E6EFF, "Forum-ul server-ului este xplaygamers.ro/forum te rog sa il vizitezi si tu.");
- return 1;
- }
- CMD:flymode(playerid,parmas[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- StartFly(playerid);
- return 1;
- }
- CMD:stopfly(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD111CFF, "Nu esti autorizat sa folosesti aceasta comanda.");
- StopFly(playerid);
- return 1;
- }
- CMD:freezeme(playerid, params[])
- {
- TogglePlayerControllable(playerid, 0);
- SCM(playerid, -1, "You are freezed.");
- return 1;
- }
- CMD:unfreezeme(playerid, params[])
- {
- TogglePlayerControllable(playerid, 1);
- SCM(playerid, -1, "You are unfreezed.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement