if(strcmp(cmd, "/sirene", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pSocio] >= 1) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPVarInt(playerid, "SireneStatus") == 0) { SetPVarInt(playerid, "SireneStatus", 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); return 1; } else if(GetPVarInt(playerid, "SireneStatus") == 1) { SetPVarInt(playerid, "SireneStatus", 0); DestroyObject(GetPVarInt(playerid, "undercover")); DestroyObject(GetPVarInt(playerid, "undercover1")); return 1; } } } } return 1; }
if(strcmp(cmd, "/sirene", true) == 0) { if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPVarInt(playerid, "SireneStatus") == 0) { SetPVarInt(playerid, "SireneStatus", 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); return 1; } else if(GetPVarInt(playerid, "SireneStatus") == 1) { SetPVarInt(playerid, "SireneStatus", 0); DestroyObject(GetPVarInt(playerid, "undercover")); DestroyObject(GetPVarInt(playerid, "undercover1")); return 1; } } } } return 1; }
if(strcmp(cmd, "/sirene", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPVarInt(playerid, "SireneStatus") == 0)
{
SetPVarInt(playerid, "SireneStatus", 1);
SetPVarInt(playerid, "undercover", CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0));
SetPVarInt(playerid, "undercover1", CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0));
AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
return 1;
}
else if(GetPVarInt(playerid, "SireneStatus") == 1)
{
SetPVarInt(playerid, "SireneStatus", 0);
DestroyObject(GetPVarInt(playerid, "undercover"));
DestroyObject(GetPVarInt(playerid, "undercover1"));
return 1;
}
}
}
}
return 1;
}
if(strcmp(cmd, "/sirene", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(!IsACop(playerid))return SendClientMessage(playerid, -1, "Vocк nгo й COP!");
if(GetPVarInt(playerid, "SireneStatus") == 0)
{
SetPVarInt(playerid, "SireneStatus", 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);
return 1;
}
else if(GetPVarInt(playerid, "SireneStatus") == 1)
{
SetPVarInt(playerid, "SireneStatus", 0);
DestroyObject(GetPVarInt(playerid, "undercover"));
DestroyObject(GetPVarInt(playerid, "undercover1"));
return 1;
}
}
}
return 1;
}
PHP код:
|