22.12.2009, 11:05
so hi today i have a problem with ids so i have this code
but it is only showed to ID 0 all things to him how i do it for who is entering in the vehicle...
i cant put it on the OnPlayerEnterVehicle bcs dont work the
so to it work i needed to put one timer and some time after i enter in the vehicle it showes it all
so if any guy have the solution .... THANKS
pawn Код:
public EnterVec(playerid, vehicleid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new JH [128];
new strh[128];
new player[MAX_PLAYER_NAME];
GetPlayerName(playerid, player, sizeof(player));
{
format(JH, sizeof(JH), "Vehicle Number Registrement: INGSV-0091-[%d]-159", GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_BLUE, JH);
}
{
SendClientMessage(playerid, COLOR_RED,"[Vehicle]: Please put the Seatbelt or Helmet using /seatbelt or /helmet");
}
{
format(strh, sizeof(strh), "** %s: enters in the vehicle and prepares to start the engine **", player);
ProxDetector(15.0, playerid, strh, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK);
}
}
else{return 1;}
return 1;
}
i cant put it on the OnPlayerEnterVehicle bcs dont work the
pawn Код:
format(JH, sizeof(JH), "Vehicle Number Registrement: INGSV-0091-[%d]-159", GetPlayerVehicleID(playerid));
so if any guy have the solution .... THANKS