Most wanted [rps+]
#1

Hi , how to create CreatePlayer3DTextLabel that if player get wanted level >= 5 to create text at player body "Most wanted Player" ?
Reply
#2

First off make your killstreak script under onplayerdeath

Then if the player gets 'x' amount of kills

pawn Код:
//Top of the script, making a global variable
new Text3D:wantedlabel;

//Under your killstreak part of OnPlayerDeath
SetPlayerWantedLevel(killerid, 5);

//Attaching the actuall label to the player. Still under your killstreak code
wantedlabel = Create3DTextLabel("Most Wanted Player!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(wantedlabel, playerid, 0.0, 0.0, 0.7);

//Removing the label when the player dies..
//OnPlayerDeath
DeletePlayer3DTextLabel(playerid, Text3D:wantedlabel);
Try that, haven't tested it myself although it's the basic outline of how to do it.
Reply
#3

pawn Код:
if(GetPlayerWantedLevel(playerid) >= 5)
    {
        new Text3D:Label[MAX_PLAYERS];
        Delete3DTextLabel(Label[playerid]);
        Label[playerid] = Create3DTextLabel("Most Wanted", 0xFF0000FF, 0.0, 0.0, 0.7, 40.0, 0, 0);
        Attach3DTextLabelToPlayer(Label[playerid], playerid, 0.0, 0.0, 0.5);
    }
Reply
#4

Quote:
Originally Posted by LocMax
Посмотреть сообщение
pawn Код:
if(GetPlayerWantedLevel(playerid) >= 5)
    {
        new Text3D:Label[MAX_PLAYERS];
        Delete3DTextLabel(Label[playerid]);
        Label[playerid] = Create3DTextLabel("Most Wanted", 0xFF0000FF, 0.0, 0.0, 0.7, 40.0, 0, 0);
        Attach3DTextLabelToPlayer(Label[playerid], playerid, 0.0, 0.0, 0.5);
    }
I actually completely forgot about the GetPlayerWantedLevel function.
Reply
#5

It's not worked some one help plesae.
Reply
#6

Quote:
Originally Posted by SPA
Посмотреть сообщение
It's not worked some one help plesae.
Where did you added those codes?
Reply
#7

FIXED Must add Killerid not Players!

if(GetPlayerWantedLevel(Killerid) >= 5)


REPS ++
Reply
#8

1 question how to put Create3DTextLabel("--Most Wanted--", GREEN, 30.0, 40.0, 50.0, 40.0, 0); in the Belly part of body??
Reply
#9

Quote:
Originally Posted by SPA
Посмотреть сообщение
1 question how to put Create3DTextLabel("--Most Wanted--", GREEN, 30.0, 40.0, 50.0, 40.0, 0); in the Belly part of body??
Change the z coordinates.

[vTc]Patroool @ How did you got those coordinates?..
Reply
#10

Quote:
Originally Posted by davve95
Посмотреть сообщение
Change the z coordinates.

[vTc]Patroool @ How did you got those coordinates?..
What coordinates? I didn't get any cords?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)