15.05.2014, 12:08
[Tutorial] How to make a robbery system
16.05.2014, 00:29
doens't work for me
16.05.2014, 06:23
18.05.2014, 04:59
Thanks a lot bro +Rep Nice tutorial
But i liked rarther using IsPlayerInDyanmicCP(playerid, CP_tatoo);
I used this
But i liked rarther using IsPlayerInDyanmicCP(playerid, CP_tatoo);
I used this
21.05.2014, 17:41
04.06.2014, 06:01
I have used this it works But the Problem Is Shop Robbed Recently Doesn't Work When I rob a shop during robbing I exit the cp And Robbery fails Then Just again I type /robshop it Starts Again Doesnt Show the message ShopRobbedRecenlty ? ? ? ?
04.06.2014, 11:07
Hi Rockhopper, make sure u have this
in ur /robstore command
pawn Code:
if(tatoorobbedrecently >=1) //checking if tatoo shop has been robbed recently
{
SendClientMessage(playerid, COLOR_RED, "Tatoo Shop has been robbed recently"); // sending error message
}
02.09.2014, 09:32
Quote:
I have used this it works But the Problem Is Shop Robbed Recently Doesn't Work When I rob a shop during robbing I exit the cp And Robbery fails Then Just again I type /robshop it Starts Again Doesnt Show the message ShopRobbedRecenlty ? ? ? ?
|
pawn Code:
if(tatoorobbedrecently >=1) //checking if tatoo shop has been robbed recently
{
SendClientMessage(playerid, COLOR_RED, "Tatoo Shop has been robbed recently"); // sending error message
return 1;
}
28.11.2014, 05:36
Quote:
Code:
C:\Users\Owner\Downloads\Server (1) (1)\Server (1)\The_Server\gamemodes\Rob_System.pwn(59) : error 021: symbol already defined: "SetTimer" C:\Users\Owner\Downloads\Server (1) (1)\Server (1)\The_Server\gamemodes\Rob_System.pwn(83) : error 017: undefined symbol "GivePlayerScore" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
Code:
GetPlayerScore(SetPlayerScore(i,1));
28.11.2014, 08:36
It seems nice
Btw is it kinda mission or anything similar, or just robbing?
Btw is it kinda mission or anything similar, or just robbing?
23.06.2015, 12:50
the problem is you can only rob one time if you try to rob it again it wont be rob i waited 4 hours to re rob it but it told Tatoo Shop has been robbed recently" how can we fix it please help ??
23.06.2015, 19:44
You could have added timer in rob command of 60 seconds, instead of this "public ServerRobbery() ".
Anyway not bad.
Anyway not bad.
24.06.2015, 18:04
(
Last edited by Inn0cent; 24/06/2015 at 07:32 PM.
)
You've forgot about setting the Robbed recently to 0, Lemme do it for you. You can also set up this thing in 1 timer instead of timer for every different robbery. But this way is more easy.
Code:
CMD:robthis(playerid, params[]) { #pragma unused params // we dont need the params if(IsPlayerInDynamicCP(playerid, CP_tatoo)) // Checking if player is in the checkpoint { if(tatoorobbedrecently >=1) //checking if tatoo shop has been robbed recently { SendClientMessage(playerid, COLOR_RED, "Tatoo Shop has been robbed recently"); // sending error message return 1; } SetTimer("robbedrecently", 180000, false);//Set a timer of 180 seconds to set the recentlyrobbed to 0 ROBBING_TATOO[playerid] = 60; // setting the robbery timer tatoorobbedrecently =180; // Time the players needs to wait for starting an another robbery in the same place } public robbedrecently() { tatoorobbedrecently = 0;//Sets it to zero } return 1; }
27.06.2015, 13:18
Seems like the robbery timer wont reset when i rob first time can rob but second i want rob cannot
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)