SA-MP Forums Archive
Rob help - 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: Rob help (/showthread.php?tid=572462)



Rob help - TheLegend1 - 28.04.2015

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); 



Re: Rob help - ChuckyBabe - 28.04.2015

Maybe try to put some variable.


Re: Rob help - $Marco$ - 28.04.2015

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);



Re: Rob help - TheLegend1 - 28.04.2015

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