Little Clucker
Join Date: Dec 2015
Posts: 25
Reputation: 1
|
Como concerto isso? ???
Como faço pra ele verificar se o player esta no veiculo determinado? isso que eu fiz ta errado?
ID dos carros:
PHP Code:
new VARIOS_VEICULOS[81][] =
{ "400","401","402","404","405","409","410","411","412","415","419","421","422","426","429","436","439","442","445","451", "458","466","467","474","475","477","478","479","480","491","492","494","496","500","502","503","504","506","507","516", "517","518","526","527","529","533","534","535","540","541","542","543","545","546","547","549","550","551","552","554", "555","558","559","560","561","562","565","566","567","568","575","576","580","585","587","589","600","602","603","604", "605" };
CMD:
PHP Code:
CMD:sirene(playerid, params[]){
if(IsPlayerConnected(playerid))
{ vehicleiid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleiid) == VARIOS_VEICULOS)
{
if(GetPVarInt(playerid, "SireneStatus") == 0)
{ SetPVarInt(playerid, "SireneStatus", 1); SetPVarInt(playerid, "undercover", CreateObject(19419,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), 0, 0, 0.8, 0, 0, 0);
return 1;
}
else if(GetPVarInt(playerid, "SireneStatus") == 1)
{ SetPVarInt(playerid, "SireneStatus", 0); DestroyObject(GetPVarInt(playerid, "undercover"));
return 1;
}
}
}
return 1;
}
|
Aucun commentaire:
Enregistrer un commentaire