27.11.2014, 13:46
Quote:
pawn Код:
|
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:Pos[3];
if(!ispassenger)
{
if(IsPoliceVeh(vehicleid))
{
SendClientMessage(playerid, -1, "Vous n'кtes pas membre de la police!");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
}
else if(IsCamionneurVeh(vehicleid)) // This needs to be like this
{
SendClientMessage(playerid, -1, "Vous n'кtes pas camionneur ou vous n'avez pas les compйtences nйcessaires ou vous n'кtes pas en service.");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
}
else if(IsAmbulancierVeh(vehicleid))
{
SendClientMessage(playerid, -1, "Vous n'кtes pas ambulancier.");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
printf("Ambulance");
}
}
return 1;
}
Show us the functions. All 3 of them.