28.12.2013, 01:33
Alguйm poderia colocar isto:
Em OnPlayerEnterVehicle, porque eu nгo estou consiguindo.
pawn Код:
new string3[256];
format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
GameTextForPlayer(i, string3, 6000, 1);
}
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);
}
}
if(InCall[playerid]==1)return SendClientMessage(playerid,Vermelho,"[ERRO] Й proibido dirigir e falar no telefone.");
return 1;
}