13.06.2012, 15:46
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid == 476)
{
SendClientMessage(playerid, 0xFF0000AA, "You entered in a Bomber plane press Space to drop the bomb.");
SendClientMessage(playerid, RED, "Warning: It is powerful so becarful while using it.");
return 1;
}
}
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if (vehicleid == 476)
{
Clicked[playerid] = 0;
Allowed[playerid] = 0;
KillTimer(Timer[playerid]);
SendClientMessage(playerid,-1,"Test Message");
}
return 1;
}
But the fact is this shits not working.And OnPlayerExitVehicle is important for me.