24.07.2012, 20:56
pawn Код:
if ( newstate == PLAYER_STATE_DRIVER )
{
if ( CarroJogador [ playerid ] == GetPlayerVehicleID ( playerid ) )
{
new owner [ MAX_PLAYER_NAME ];
GetPlayerName ( InfoCarro [ playerid ] [ s_Dono ] , owner , sizeof ( owner ) ) ;
format ( String , sizeof ( String ) , "Seja bem vindo ao seu veнculo!" , GetVehicleNameFromID ( GetPlayerVehicleID ( playerid ) ) , owner ) ;
SendClientMessage ( playerid , 0xFFFFFFAA , String ) ;
}
else
{
format ( String, sizeof ( String ) , "Veнculo de %s somente ele(a) pode dirigi-lo!" , InfoCarro[ playerid ] [ s_Dono ] ) ;
SendClientMessage ( playerid , -1 , String ) ;
PlayerPlaySound ( playerid , 1147 , 0.0 , 0.0 , 0.0) ;
RemovePlayerFromVehicle ( playerid ) ;
}
}