28.09.2014, 13:28
Galera como eu coloco para bloquear, para o player nao poder colocar o neon mais de 1 vez. Tipo quero que apareзa. Esse veiculo jб possui Neon.
pawn Код:
case 3:
{
DestroyObject( GetPVarInt( playerid, "policia" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "policia2" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "interior" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "interior1" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "back" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "back1" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "undercover" ));
DeletePVar( playerid, "Sirenes" );
DestroyObject( GetPVarInt( playerid, "undercover1" ));
DeletePVar( playerid, "Sirenes" );
// Policia na Frente
TogglePlayerControllable(playerid, true);
SetPVarInt( playerid, "Sirenes", 1 );
SetPVarInt( playerid, "front", CreateObject( 18646,0,0,0,0,0,0 ));
SetPVarInt( playerid, "front1", CreateObject( 18646,0,0,0,0,0,0 ));
AttachObjectToVehicle( GetPVarInt( playerid, "front" ), GetPlayerVehicleID( playerid ), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0 );
AttachObjectToVehicle( GetPVarInt( playerid, "front1" ), GetPlayerVehicleID( playerid ), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0 );
SendClientMessage( playerid, 0xFFFFFFAA, "Front Neon Instalado" );
}