[ajuda] PROCURADO em cima do player
#1

Boa noite pessoal, eu gostaria de saber como por o nome procurado em cima do player, eu tou ligado que tem q criar um 3dTextLabel, mas eu nao sei onde por para que o nome 'PROCURADO' apreзa assim que ficar com o WantedPoints > 0. alguem pode me ajudar com isso? abraзo galera.

PHP код:
//3dtext procurado em cima do player
    
new procurado Create3DTextLabel("~x PROCURADO x~"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(procuradoWantedPoints[playerid], 0.00.00.7); 
Reply
#2

if(WantedPoints[playerid] >= 1)
Reply
#3

coloca isso onde? '-' pode fazer o codigo?
Reply
#4

if(WantedPoints[playerid] >= 1)
{
new procurado = Create3DTextLabel("~x PROCURADO x~", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(procurado, WantedPoints[playerid], 0.0, 0.0, 0.7);
}
Reply
#5

ai eu coloco em OnPlayerConnect neh?

if(WantedPoints[playerid] >= 1)
{
new procurado = Create3DTextLabel("~x PROCURADO x~", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(procurado, WantedPoints[playerid], 0.0, 0.0, 0.7);
}
else
{
DeletePlayer3DTextLabel(procurado[playerid]);
}
Reply
#6

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
        new procurado = Create3DTextLabel("~x PROCURADO x~", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(procurado, playerid, 0.0, 0.0, 0.7);
    }
    else
    {
        DeletePlayer3DTextLabel(procurado[playerid]);
    }
    return 1;
}
Reply
#7

Los, deu 3 warings


C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(1964 : warning 213: tag mismatch
C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(19649) : warning 213: tag mismatch
C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(19653) : warning 202: number of arguments does not match definition
Reply
#8

Quote:
Originally Posted by victor_thug
Посмотреть сообщение
Los, deu 3 warings


C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(1964 : warning 213: tag mismatch
C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(19649) : warning 213: tag mismatch
C:\Users\Victor\Desktop\SAMP-SERVER\ThuG Life City\gamemodes\ThugLife.pwn(19653) : warning 202: number of arguments does not match definition
Pode destacar as linhas, por favor?
Reply
#9

(19648.) Attach3DTextLabelToPlayer(procuradonome[playerid], playerid, 0.0, 0.0, 0.7)
(19649.) }
(19653.) }
Reply
#10

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Text3D:procurado[MAX_PLAYERS];
    if(WantedPoints[playerid] != 0)
    {
        procurado[playerid] = Create3DTextLabel("~x PROCURADO x~", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
        Attach3DTextLabelToPlayer(procurado[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else
    {
        DeletePlayer3DTextLabel(procurado[playerid]);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)