[Pedido] Concerta isso pra mim ? ;s
#3

Nossa manoooooooooo... tu ta repetindo callbackґs ai fera.

pawn Код:
#include <a_samp>

//defines cores

#define Branco                                                                     0xFFFFFFFF//Cor Branco
#define Azul                                                                       0x002CBFFF//Cor Azul
#define Verde                                                                    0x17FA12FF//Cor Verde
#define Laranja                                                                    0xFF8000FF//Cor Laranja
#define Amarelo                                                                 0xFFFF00FF//Cor Amarelo
#define Meiorosa                                                                0xFF0080FF//Cor Meiorosa
#define Azulbb                                                                     0x24C9DBFF//Cor Azulbb
#define Vermelhoescuro                                                            0xA9012FFF//Cor Vermelhoescuro
#define Vermelho                                                                 0xFE0549FF//Cor Vermelho

new Text:Textdrawdebaixodoradar;//textdraw

main()//raiz do GM
{
    print("|-----------------------------------|");//mensagem quando liga o serivodr
    print("|      Brasil Mundo Realista        |");//mensagem quando liga o serivodr
    print("|-----------------------------------|");//mensagem quando liga o serivodr
}
public OnGameModeInit()
{
    SetGameModeText("[B.M.R]");//nome do modo
    AddPlayerClass(0,661.1360,-439.4110,16.3359,168.8632,0,0,0,0,0,0); //
    Textdrawdebaixodoradar= TextDrawCreate(1.0, 433.0, "Brasil Mundo Realista*");
    TextDrawAlignment(Textdrawdebaixodoradar,0);//Nгo mecher
    TextDrawBackgroundColor(Textdrawdebaixodoradar,0x000000ff);//Nгo mecher
    TextDrawFont(Textdrawdebaixodoradar,2);//Tipo de Letro (veja o *[2]mais abaixo)
    TextDrawLetterSize(Textdrawdebaixodoradar,0.2999, 1.4);//Nгo mecher
    TextDrawBoxColor(Textdrawdebaixodoradar,0x00000050);//Nгo mecher
    TextDrawColor(Textdrawdebaixodoradar,0xffffffff);//Nгo mecher
    TextDrawSetOutline(Textdrawdebaixodoradar,1);//Nгo mecher
    TextDrawSetProportional(Textdrawdebaixodoradar,1);//Nгo mecher
    TextDrawSetShadow(Textdrawdebaixodoradar,1);//Nгo mecher
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, Textdrawdebaixodoradar);
        }
    }
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    new nomeplayer[50];
    new mensagem[50];
    GetPlayerName(playerid,nomeplayer,sizeof(nomeplayer));
    format(mensagem,sizeof(mensagem),"[INFO SERVER]%s - Entrou no servidor",nomeplayer);
    SendClientMessageToAll(Branco,mensagem);
    TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
Acho que й pra ser isso!

Da proxima vez, aprenda a nгo dar CTRL + C e CTRL + V
Reply


Messages In This Thread
Concerta isso pra mim ? ;s - by PHard - 03.01.2014, 23:25
Re: Concerta isso pra mim ? ;s - by standart - 03.01.2014, 23:28
Respuesta: Concerta isso pra mim ? ;s - by ViniKuliveguisky - 03.01.2014, 23:32
Re: Concerta isso pra mim ? ;s - by Ley - 03.01.2014, 23:46

Forum Jump:


Users browsing this thread: 2 Guest(s)