simple show player money with textdraw will show player money to all !!!!LOL
#1

if player A using showcash cmd to see his money (textdraw is visible to him )and if player B press showcash
then in player A screen will show player B's money

how to fix it ?
new Text:invtextdraw2;
this is under gamemodeinit

Код:
invtextdraw2 = TextDrawCreate(68.750000, 
TextDrawLetterSize(invtextdraw2, 0.234374
TextDrawAlignment(invtextdraw2, 1);      
TextDrawColor(invtextdraw2, -1);         
TextDrawSetShadow(invtextdraw2, 0);      
TextDrawSetOutline(invtextdraw2, 1);     
TextDrawBackgroundColor(invtextdraw2, 51)
TextDrawFont(invtextdraw2, 1);           
TextDrawSetProportional(invtextdraw2, 1);
on command text

PHP код:
dcmd_showcash(playerid,pa
{                     
    
#pragma unused params
new string[128];
format(string,sizeof(string),"~w~cash : ~g~%d $",GetPlayerMoney(playerid));
 
TextDrawShowForPlayer(playerid,invtextdraw2);   
 
TextDrawSetString(invtextdraw2,string); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)