24.05.2011, 16:10
(
Последний раз редактировалось deregudegu; 24.05.2011 в 16:40.
Причина: Codigo corrigido :D
)
Cara me explica para que pegar a cordenade e setar d novo?
Como a public й de entrar no carro sу mandar remover o player.
Teanta assim:
Como a public й de entrar no carro sу mandar remover o player.
Teanta assim:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (vehicleid == 40)
{
AddVehicleComponent(vehicleid, 1079); // Cutte
}
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{
if(IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader] > 3 || PlayerInfo[playerid][pMember] > 3)
{
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
RemovePlayerFromVehicle(playerid);
}
}
if(IsNgCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader] > 3 || PlayerInfo[playerid][pMember] > 3)
{
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
RemovePlayerFromVehicle(playerid);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubos de uma ambulвncia");
}
if (IsATank(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader] != 3 || PlayerInfo[playerid][pMember] != 3)WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubos de um tanque"); SendClientMessage(playerid, COLOR_RED,"Vocк nгo sabe como conduzi-lo ainda.");
}
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
{
if(PlayerInfo[playerid][pAdmin] < 1337 && AdminDuty[playerid] == 0)
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}