PDA

View Full Version : Rob help


TheLegend1
28/04/2015, 03:59 PM
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 ?

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"));
GameTextForPlayer(playerid, str, 5000, 4);

ChuckyBabe
28/04/2015, 04:11 PM
Maybe try to put some variable.

$Marco$
28/04/2015, 04:52 PM
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 ?

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"));
GameTextForPlayer(playerid, str, 5000, 4);

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

TheLegend1
28/04/2015, 05:51 PM
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