Awesome wasted screen!!!!
#1

Hello guys can anyone tell me how to make a wasted screen like this plz if you guys can gimme the code
This is very nice


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

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.
Reply
#3

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
Reply
#4

Look up anything about GetPlayerName buddy.
Reply
#5

Код:
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
Reply
#6

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
Reply
#7

Quote:
Originally Posted by Trevor19012
Посмотреть сообщение
Look up anything about GetPlayerName buddy.
Thanks for the advice bro.. I will check that out

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
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

Quote:
Originally Posted by div
Посмотреть сообщение
Код:
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...
Reply
#8

Quote:
Originally Posted by div
Посмотреть сообщение
Код:
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
Reply
#9

Quote:
Originally Posted by div
Посмотреть сообщение
Код:
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.

Quote:
Originally Posted by GameOvr
Посмотреть сообщение
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.
Reply
#10

@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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)