09.01.2014, 21:32
#tonisantolia olha como eu deixei, mas quando eu entro no veiculo nгo aparece o nome dele.
O ele ali
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
{
if(function218(vehicleid))
{
AddVehicleComponent(vehicleid, 1010);
}
}
new string3[256];
format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, string3, 6000, 1);
if(InCall[playerid]==1) return SendClientMessage(playerid,Vermelho,"[ERRO] Й proibido dirigir e falar no telefone.");
return 1;
}
O ele ali
pawn Код:
new string3[256];
format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, string3, 6000, 1);