[Ajuda]Moeda segundaria
#1

Galera eu coloquei a moeda segundaria do almeida no meu GM mais o include nao tem a funзao SetPlayerReal ai fika meia foda pra salvar alguem ai sab como faiz pra colocar a funзao no include??
Reply
#2

pede tуpico no FS ou INclude.
Reply
#3

Usa assim sem include т:

й uma ligeira modificaзгo do GP cujo creditos nгo sei pra quem vai

Topo do GM:
pawn Код:
#define VERDE 0x33AA33AA

new Real[MAX_PLAYERS];
new Text:TextReal[MAX_PLAYERS];

forward GivePlayerReal(playerid, real);
forward GetPlayerReal(playerid);
forward ResetPlayerReal(playerid);
Fim do GM

pawn Код:
public GivePlayerReal(playerid, real)
{
    TextDrawHideForPlayer(playerid, TextReal[playerid]);
    Real[playerid] += real;
    new str[256];
    format(str, 256, "~g~R$~r~:~w~%d", Real[playerid]);
    TextReal[playerid] = TextDrawCreate(499.600,101.0000,str);
    TextDrawColor(TextReal[playerid], VERDE);
    TextDrawLetterSize(TextReal[playerid], 0.575, 2.1);
    TextDrawFont(TextReal[playerid], 3);
    TextDrawBackgroundColor(TextReal[playerid], 0x00000AA);
    TextDrawSetOutline(TextReal[playerid], 2);
    TextDrawShowForPlayer(playerid,TextReal[playerid]);
    return 1;
}

public GetPlayerReal(playerid)
{
    return Real[playerid];
}

public ResetPlayerReal(playerid)
{
    Real[playerid] = 0;
    return Real[playerid];
}
pronto ja adicionou a nova moeda

agora ao invйs de usar

GivePlayerMoney USE GiveplayerReal
GetPlayerMoney USE GetPlayerReal
ResetPlayerMoney USE ResetPlayerReal


Se ja usou a moeda original do gta o "Money"

De CTRL+H
e no primeiro quadrinho coloca "Money"
e no segundo "Real"

tem umas opзхes para marcar do lado marque a primeira e clique em OK(ou o que tiver para aceitar )

Espero que consiga
Reply
#4

valeu ae deu certinho akie <3 tavo precisando disso ae pruns nbs nao usar hacker no meu server

/imageshack/img337/5...soparecido.png
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)