24.05.2011, 18:55
(
Последний раз редактировалось The Knight; 24.05.2011 в 19:43.
)
PHP код:
public OnPlayerExitVehicle( playerid, vehicleid )
{
new newstat, kVeh;
newstat = GetPlayerState( playerid );
kVeh = GetPlayerVehicleID( playerid );
if( newstat == 2 )
{
if( IsPlayerInAnyVehicle( playerid ) )
{
if( kVeh == CarroCV )
{
DestroyVehicle( kVeh );
RespawnarCarroCV[ playerid ] =0;
return true;
}
}
}
return true;
}