gametext 2 parts 1 outcome - 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: gametext 2 parts 1 outcome (
/showthread.php?tid=368022)
gametext 2 parts 1 outcome -
bleedis - 11.08.2012
Hello there!
I need one stuff but i dont know it is possible or if it is how to do that. so im here to ask for help.
first part under onplayerdeath
pawn Code:
playercash = GetPlayerMoney(playerid);
format(string, sizeof(string), "~g~+$%d", playercash/2);
GameTextForPlayer(killerid, string, 3000, 1);
and second is under different thing who shows how much exp u got for killing. this is under different public.
pawn Code:
format(string4, sizeof(string4), "+%d Exp", exp);
But if it possible to make that when player dies message shows like
pawn Code:
playercash = GetPlayerMoney(playerid);
format(string, sizeof(string), "~g~+$%d~n~+%d", playercash/2, exp);
GameTextForPlayer(killerid, string, 3000, 1);
now. how can i get to show whole text in one message even if thouse 2 things is under different publics?
I really hope someone understend me cuz i suck in explanations.
Thanks!
Re: gametext 2 parts 1 outcome -
FalconX - 11.08.2012
If your experience variable is global then yes.