Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_objects>
- #define COLOR_WHITE 0xFFFFFFAA
- new kogut;
- new vehicle;
- new objectid;
- new objectid1;
- new objectid2;
- public OnFilterScriptInit()
- {
- objectid = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
- objectid1 = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
- objectid2 = CreateObject(19327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //create the object
- print("\n--------------------------------------");
- print("------------Kogut by BartuS------------");
- print("----------------Loaded--------------");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyObject(objectid);
- DestroyObject(objectid1);
- DestroyObject(objectid2);
- print("\n-----------------------------------");
- print("-----------Kogut by BartuS----------");
- print("--------------Unloaded---------------");
- print("-----------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/kogut", true) == 0)
- {
- kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);//lampka tyl
- vehicle = GetPlayerVehicleID(playerid);
- AttachObjectToVehicle(kogut, vehicle, 0.33, -0.94, 0.45, 0.0, 2.0, 0.0);
- SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
- kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);//lampka tyl
- vehicle = GetPlayerVehicleID(playerid);
- AttachObjectToVehicle(kogut, vehicle, -0.33, -0.94, 0.45, 0.0, -182.0, 0.0);
- SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
- kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);
- vehicle = GetPlayerVehicleID(playerid);
- AttachObjectToVehicle(kogut, vehicle, -0.22, 2.66, -0.2, 0.0, 0.0, 180.0);
- SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
- kogut = CreateObject(19797,2.000000, 0.000000, 5.0, 5.000000, 5.000000, 5.000000);
- vehicle = GetPlayerVehicleID(playerid);
- AttachObjectToVehicle(kogut, vehicle, 0.22, 2.66, -0.2, 0.0, 180.0, 180.0);
- SendClientMessage(playerid, COLOR_WHITE, "Zainstalowano");
- SetObjectMaterialText(objectid, "{FFFFFF}POLICJA", 0, 100, "impact", 30, 0, -32256, 0, 1);//policja tył
- AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 1.05, -0.8, -0.17, 0.0, 0.0, 90.0);
- SetObjectMaterialText(objectid2, "{FFFFFF}POLICJA", 0, 100, "impact", 30, 0, -32256, 0, 1);//policja tył
- AttachObjectToVehicle(objectid2, GetPlayerVehicleID(playerid), -1.05, -0.8, -0.17, 0.0, 0.0, -90.0);
- SetObjectMaterialText(objectid1, "{FFFFFF}POLICJA", 0, 100, "impact", 40, 0, -32256, 0, 1);
- AttachObjectToVehicle(objectid1, GetPlayerVehicleID(playerid), 0.0, 2.32, 0.0, -75.0, 0.0, 180.0);//policja przod
- return 1;
- }
- if(strcmp(cmdtext, "/delkogut", true) == 0) {
- DestroyObject(kogut);
- SendClientMessage(playerid, COLOR_WHITE, "Usunięto Kogut");
- return 1;
- }
- return 0;
- }
- public OnVehicleSpawn(vehicleid)
- {
- DestroyObject(kogut);
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- DestroyObject(kogut);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement