25.09.2010, 01:27
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 3)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLider]==1||PlayerInfo[playerid][pMembro]==1||PlayerInfo[playerid][pMembro]==17||PlayerInfo[playerid][pLider]==17) }
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubo de Viatura"); }
}
if (IsAnAmbulanceCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pMembro]==4||PlayerInfo[playerid][pLider]==4) }
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Roubo de Ambulancia"); }
}
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Entra no veiculo.", sendername);
DetectorProx(5.0,playerid,string,ROXO);
}
return 1;
}
CintoPlayer[playerid] = 0;
GameTextForPlayer(playerid, "~r~/cinto Caso Contrario ~n~Morrer em Batidas", 3000, 4);
return 1;
}