Dr4kul4[FC]\" post=\"241794\" timestamp=\"1332266329\"]
http://sampforum.hu/index.php?topic=22720.0
ezis ilyen cska it parancsal kel
[/quote]
igen igen
Átirtam:
Sziréna felrakása az Alt gr és a CTRL gomb.
#include <a_samp>
public OnFilterScriptInit()
{
print(\"\\n************************************\");
print(\" Sziréna Betöltve \");
print(\"************************************\\n\");
return 1;
}
public OnFilterScriptExit()
{
print(\"\\n***************************************\");
print(\" Sziréna Kikapcsolva \");
print(\"***************************************\\n\");
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_ACTION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
SetPVarInt(playerid, \"Status\", 1);
SetPVarInt(playerid, \"undercover\", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, \"undercover1\", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, \"undercover\"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
AttachObjectToVehicle(GetPVarInt(playerid, \"undercover1\"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
SendClientMessage(playerid, 0x00FF00AA, \"Sziréna felrakva!\");
}
}