06.08.2014, 15:45
//NOME DO DONO NO VEICULO
if(UltimoVeiculoUsado[playerid] == veiculo[playerid]){
if(newstate == PLAYER_STATE_DRIVER){OcultarDonoDoVeiculo(playerid );}
if(oldstate == PLAYER_STATE_DRIVER){MostrarDonoDoVeiculo(playerid );}}
//Coloca esse no stock
stock MostrarDonoDoVeiculo(playerid)
{
new pdname[MAX_PLAYER_NAME],carstring[60];
new Float:X,Float:Y,Float:Z;GetPlayerPos(playerid,X,Y, Z);
GetPlayerName(playerid, pdname, MAX_PLAYER_NAME);
format(carstring, sizeof(carstring), "{FFFFFF}Veнculo de:\n{FFFFFF}%s [ID:%i]", pdname, playerid);
Update3DTextLabelText(TextoVeiculo[playerid],0xFF8408FF,carstring);
Attach3DTextLabelToVehicle(TextoVeiculo[playerid],veiculo[playerid],0.0,0.0,1.0);
return 1;
}
if(UltimoVeiculoUsado[playerid] == veiculo[playerid]){
if(newstate == PLAYER_STATE_DRIVER){OcultarDonoDoVeiculo(playerid );}
if(oldstate == PLAYER_STATE_DRIVER){MostrarDonoDoVeiculo(playerid );}}
//Coloca esse no stock
stock MostrarDonoDoVeiculo(playerid)
{
new pdname[MAX_PLAYER_NAME],carstring[60];
new Float:X,Float:Y,Float:Z;GetPlayerPos(playerid,X,Y, Z);
GetPlayerName(playerid, pdname, MAX_PLAYER_NAME);
format(carstring, sizeof(carstring), "{FFFFFF}Veнculo de:\n{FFFFFF}%s [ID:%i]", pdname, playerid);
Update3DTextLabelText(TextoVeiculo[playerid],0xFF8408FF,carstring);
Attach3DTextLabelToVehicle(TextoVeiculo[playerid],veiculo[playerid],0.0,0.0,1.0);
return 1;
}