Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new sirene[MAX_VEHICLES];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Sirenen FilterScript");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/blicht an", cmdtext, true, 10) == 0)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,x,y,z,0,0,0,100);
- AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.2,0,0.71,0,0,0);
- return 1;
- }
- if (strcmp("/blicht aus", cmdtext, true, 10) == 0)
- {
- DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement