[AJUDA]GameTextForPlayer
#1

queria q quando um vip logase no server aparecia na ela de todos uma GameTextForPlayer Vip: tal Online laguem ajuda?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid) {
    //if(Vip[playerid] > 0) troque pela sua vбriavel
    {
        new name[24], s[60];
        GetPlayerName(playerid, name, 24);
        format(s, 60, "Vip: %s Online..", name);
        GameTextForAll(s, 5000, 3);
    }
    return true;
}
Reply
#3

deu erro o pawn paro de funcionar e fecho tenta por ae

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        SpawnPlayer(playerid);
        return 1;
    }
Reply
#4

-_-
pawn Код:
public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid))
    {
        SpawnPlayer(playerid);
        return 1;
    }
    //if(Vip[playerid] > 0) troque pela sua vбriavel
    {
        new name[24], s[60];
        GetPlayerName(playerid, name, 24);
        format(s, 60, "Vip: %s Online..", name);
        GameTextForAll(s, 5000, 3);
    }
    return true;
}
Reply
#5

botei assim o pawn deu erro e paro de funcionar
pawn Код:
public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid))
    {
        SpawnPlayer(playerid);
        return 1;
    }
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        new name[24], s[60];
        GetPlayerName(playerid, name, 24);
        format(s, 60, "Vip: %s Online..", name);
        GameTextForAll(s, 5000, 3);
    }
    return true;
}
Reply
#6

Quote:
Originally Posted by Luiiz
Посмотреть сообщение
botei assim o pawn deu erro e paro de funcionar
pawn Код:
public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid))
    {
        SpawnPlayer(playerid);
        return 1;
    }
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        new name[24], s[60];
        GetPlayerName(playerid, name, 24);
        format(s, 60, "Vip: %s Online..", name);
        GameTextForAll(s, 5000, 3);
    }
    return true;
}
O problema nгo estб ai, experimente remover este cуdigo do seu gamemode para ver.
Reply
#7

Aki o code do zbt funfo de boa ^^
Reply
#8

mano quando eu tiro o code o gm compila de boa n sei o q й entao ;s
Reply
#9

Jб esperimentou colocar sу o code do zbt?
Reply
#10

sim, nao deu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)