06.02.2011, 02:11
The title.
pawn Код:
command(undercover, playerid, params[])
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1)
{
if(IsPlayerInAnyVehicle);
{
SetPVarInt(playerid, "coplight0", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "coplight1", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "coplight0"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "coplight1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid,RED,"You need to be inside a car to use this. Preferrably the Elegent");
}
else
{
SendClientMessage(playerid,RED,"You must be in the LSPD to use this.");
}
}
return 1;
}