SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/06/2012, 09:50 PM   #1
San1
Huge Clucker
 
San1's Avatar
 
Join Date: Dec 2011
Posts: 282
Reputation: 4
Default Jupiter Hill robbery not working

i got steveos127 cnr script and the jupiter hill robbery one aint workin idk how to fix it

all other robberies work but when i type /robstore it does not respond and other burgershot robberies work but not this one see and the same dialog works for others burgershots its the same id



Code:
if(zones[current_zone][zone_name] == zones[162][zone_name])
	    {
		    if(JHBurgerShotRobbedRecently >= 1)
		    {
		        SendClientMessage(playerid,COLOR_ERROR,"The Juniper Hollow Burger Shot has been robbed recently.");
		        return 1;
			}
			if(rrand <= 30)
			{
			    SendClientMessage(playerid,COLOR_ERROR,"Juniper Hollow Burger Shot robbery failed.");
			    JHBurgerShotRobbedRecently =320;
			    return 1;
			}
			JHBurgerShotRobbedRecently =320;
			RobbingJHBurgerShot[playerid] =25;
			IncreaseWantedLevel(playerid,4);
			IncreasePlayerScore(playerid,1);
			format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingJHBurgerShot[playerid]);
			ShowPlayerDialog(playerid,DIALOG_BURGERSHOT,DIALOG_STYLE_MSGBOX,"{FF0000}Burger Shot Robbery",string,"Ok","Cancel");

			format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Juniper Hollow Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
			SendClientMessageToAllCops(string);

			format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
			SendClientMessageToAll(COLOR_RED,string);

			format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
			IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
			return 1;
		}
__________________
San1 is offline   Reply With Quote
Old 10/06/2012, 10:56 PM   #2
San1
Huge Clucker
 
San1's Avatar
 
Join Date: Dec 2011
Posts: 282
Reputation: 4
Default Re: Jupiter Hill robbery not working

Someone Please help me
__________________
San1 is offline   Reply With Quote
Old 11/06/2012, 02:08 AM   #3
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: Jupiter Hill robbery not working

Don't bump after an hour. Wait atleast a day or two. Shouldn't you code your own gamemode so you actually know what you're doing?
__________________
once average now terrible
WillyP is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] [MAP] LS Hill Drift Road [MOB]TheAgent Maps 12 18/08/2012 03:13 PM
ServerFFS going down hill or what? JE Server Support 16 25/10/2011 02:01 PM
[Map] Hill By: Jonathan Feitosa JonathanFeitosa Maps 10 14/03/2011 08:15 PM


All times are GMT. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.