PDA

View Full Version : Awesome wasted screen!!!!


GameOvr
08/07/2018, 12:11 PM
Hello guys can anyone tell me how to make a wasted screen like this plz if you guys can gimme the code :cool:
This is very nice
https://imgur.com/ihtrPFA.jpg

And here I need to mention the killer name too like in the picture "you god killed by Fred"

Trevor19012
08/07/2018, 12:21 PM
Using strings and textdraws and using some kind of textdraw editor with atleast some kind of knowledge of pawn and how OnPlayerDeath works.
Few days of learning and you should have it down.

Refer to the SA-MP wiki.

GameOvr
08/07/2018, 12:29 PM
IH I can create the txtdraw with a tde and get the codes but the problem is idk how to get killer name to the screen plz help with an example code

Trevor19012
08/07/2018, 12:37 PM
Look up anything about GetPlayerName buddy.

div
08/07/2018, 12:43 PM
new kname[24], deathmsg[69];

GetPlayerName(killerid, kname, 24);

format(deathmsg, sizeof(deathmsg), "%s KILLED %s");
TextDrawShowForPlayer(playerid, YOUR TEXTDRAW NAME HERE, deathmsg);




Something like this

EDIT: under OnPlayerDeath

CodeStyle175
08/07/2018, 12:46 PM
well center thing is cue object ors what is zoomed in and color is changed to black.
up and down box is just simple black textdraw

GameOvr
08/07/2018, 04:35 PM
Look up anything about GetPlayerName buddy.
Thanks for the advice bro.. I will check that out

well center thing is cue object ors what is zoomed in and color is changed to black.
up and down box is just simple black textdraw
Yes you are right that's the format


new kname[24], deathmsg[69];

GetPlayerName(killerid, kname, 24);

format(deathmsg, sizeof(deathmsg), "%s KILLED %s");
TextDrawShowForPlayer(playerid, YOUR TEXTDRAW NAME HERE, deathmsg);




Something like this

EDIT: under OnPlayerDeath
Thank you very very much finally u gave me the example code that I was looking for...:D

GameOvr
08/07/2018, 04:39 PM
new kname[24], deathmsg[69];

GetPlayerName(killerid, kname, 24);

format(deathmsg, sizeof(deathmsg), "%s KILLED %s");
TextDrawShowForPlayer(playerid, YOUR TEXTDRAW NAME HERE, deathmsg);




Something like this

EDIT: under OnPlayerDeath
1 question as my knowledge in pawn in that deathmsg (%s killed you!).I can't get the font of the screenshot so how to get that

Sasino97
09/07/2018, 02:41 PM
new kname[24], deathmsg[69];

GetPlayerName(killerid, kname, 24);

format(deathmsg, sizeof(deathmsg), "%s KILLED %s");
TextDrawShowForPlayer(playerid, YOUR TEXTDRAW NAME HERE, deathmsg);




Something like this

EDIT: under OnPlayerDeath

There is something missing, and also I suggest you to avoid using '24'.


new kname[MAX_PLAYER_NAME];
new deathmsg[69];

GetPlayerName(killerid, kname, sizeof(kname));

format(deathmsg, sizeof(deathmsg), "%s KILLED YOU");
TextDrawSetString(textdraw_id, deathmsg);
TextDrawShowForPlayer(playerid, textdraw_id);



And also you will need to hide the textdraw on upon respawn.

1 question as my knowledge in pawn in that deathmsg (%s killed you!).I can't get the font of the screenshot so how to get that

That font does not normally exist, they probably used a custom texture, and if I am not wrong you only can achieve that using SA-MP 0.3 DL.

DuncanShields
23/07/2018, 11:28 PM
@GameOver

how about you Stop Copying Los Santos Territory server ? ???
Don`t be Noob and Do Something else, Virgin. All of Your Posts Are Asking for Copying Something. :confused: >:(