SA-MP Forums Archive
[Ajuda] Colocando no GM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Colocando no GM (/showthread.php?tid=483854)



Colocando no GM - ZaturN - 28.12.2013

Alguйm poderia colocar isto:

pawn Код:
new string3[256];
format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
GameTextForPlayer(i, string3, 6000, 1);
}
Em OnPlayerEnterVehicle, porque eu nгo estou consiguindo.

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;
}



Re: Colocando no GM - cantiliano - 28.12.2013

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(i))-400]);
    GameTextForPlayer(i, string3, 6000, 1);
   
    if(InCall[playerid]==1) return SendClientMessage(playerid,Vermelho,"[ERRO] Й proibido dirigir e falar no telefone.");
    return 1;
}
Tente assim man tente se esforзa um pouco ^^


Re: Colocando no GM - NurbWill - 28.12.2013

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[28];
    format(string3, sizeof(string3), "~g~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
    GameTextForPlayer(playerid, string3, 6000, 1);
   
    if(InCall[playerid]==1) return SendClientMessage(playerid,Vermelho,"[ERRO] Й proibido dirigir e falar no telefone.");
    return 1;
}
GameTextForPlayer(playerid, string3, 6000, 1);