Most wanted [rps+] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Most wanted [rps+] (
/showthread.php?tid=504123)
Most wanted [rps+] -
SPA - 02.04.2014
Hi , how to create CreatePlayer3DTextLabel that if player get wanted level >= 5 to create text at player body "Most wanted Player" ?
Re: Most wanted [rps+] -
Flake. - 02.04.2014
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.
Re: Most wanted [rps+] -
LocMax - 02.04.2014
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);
}
Re: Most wanted [rps+] -
Flake. - 02.04.2014
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.
Re: Most wanted [rps+] -
SPA - 02.04.2014
It's not worked some one help plesae.
Re: Most wanted [rps+] -
Bingo - 02.04.2014
Quote:
Originally Posted by SPA
It's not worked some one help plesae.
|
Where did you added those codes?
Re: Most wanted [rps+] -
SPA - 02.04.2014
FIXED Must add Killerid not Players!
if(GetPlayerWantedLevel(Killerid) >= 5)
REPS ++
Re: Most wanted [rps+] -
SPA - 02.04.2014
1 question how to put Create3DTextLabel("--Most Wanted--", GREEN, 30.0, 40.0, 50.0, 40.0, 0); in the Belly part of body??
Re: Most wanted [rps+] -
davve95 - 02.04.2014
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?..
Re: Most wanted [rps+] -
Bingo - 02.04.2014
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?