Rob help
#1

Hello boys well i made an system robbing but when someone try /rob on a business it shows only him the gametext i want it to show to everyone that is in business maybe someone can help me out ?

PHP код:
SetPVarInt(playerid"robbingtime"GetPVarInt(playerid"robbingtime") + );
            new 
str[164];
            
format(str164"~r~do not move:~n~~n~~w~%02d sec"120-GetPVarInt(playerid"robbingtime"));
            
GameTextForPlayer(playeridstr50004); 
Reply
#2

Maybe try to put some variable.
Reply
#3

Quote:
Originally Posted by TheLegend1
Посмотреть сообщение
Hello boys well i made an system robbing but when someone try /rob on a business it shows only him the gametext i want it to show to everyone that is in business maybe someone can help me out ?

PHP код:
SetPVarInt(playerid"robbingtime"GetPVarInt(playerid"robbingtime") + );
            new 
str[164];
            
format(str164"~r~do not move:~n~~n~~w~%02d sec"120-GetPVarInt(playerid"robbingtime"));
            
GameTextForPlayer(playeridstr50004); 
Just do this:
Код:
SetPVarInt(playerid, "robbingtime", GetPVarInt(playerid, "robbingtime") + 1 );
new str[164];
format(str, 164, "~r~do not move:~n~~n~~w~%02d sec", 120-GetPVarInt(playerid, "robbingtime"));
GameTextForAll(str, 5000, 4);
Reply
#4

Well there is not a problem Marco i need when they're robbing everyone who enter to biz to show the Gametext of time not only for one who just started rob
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)