Raven's Roleplay Need HELP!
#1

I need a help of a scripter to help me do the /robbank system better i want it that to rob a bank there should be at least 2-3 cops online and taht you need a gun so you can /robbank and to recive the money you need to go to another check point.

Please who know how to script and got time to help me leave a post in this topic i realy need help thanks alot..

you can download this server from this link: http://www.2shared.com/file/QTRPOPnA/ser_03.html

msn:khibs@hotmail.com

Ill'l be online....
Reply
#2

On top of script

Код:
forward CopsOnLine();
On GamemodeInit()
Код:
new cops;
SetTimer("CopsOnLine",1000,1);
Somewhere in your script
Код:
public CopsOnLine()
{
 new i;
 for(i=0;i<MAX_PLAYERS;i++)
 {
   if(gTeam[i]==TEAM_COPS)
   {
    cops++;
   }
 }
}
Under your robbank command

Код:
if(cops<3) SendClientMessage(playerid,0xff0000aa,"Not enough cops online");

//then the rest of your script.
Reply
#3

Thanks i will try it out!

Can you help me set a timer that the bank can be robbed every 2hours?
Reply
#4

Quote:
Originally Posted by Karl115
Thanks i will try it out!

Can you help me set a timer that the bank can be robbed every 2hours?
i think in did some thing wrong the script is not compiling it get me an error and i press don't send.. can u do it for me mate i send you my script?
Reply
#5

Can people ffs, stop makeing topics for Ravens Roleplay, no offence to him because the script is great.

PS, Is it me or is Ravens Roleplay going to be the nect GF.
Reply
#6

Quote:
Originally Posted by playbox12
Can people ffs, stop makeing topics for Ravens Roleplay, no offence to him because the script is great.

PS, Is it me or is Ravens Roleplay going to be the nect GF.
I am editing it for my server and i need help.. when i do it my self the server get me an error and it don't say what is it
Reply
#7

Quote:
Originally Posted by DJDhan
On top of script

Код:
forward CopsOnLine();
On GamemodeInit()
Код:
new cops;
SetTimer("CopsOnLine",1000,1);
Somewhere in your script
Код:
public CopsOnLine()
{
 new i;
 for(i=0;i<MAX_PLAYERS;i++)
 {
   if(gTeam[i]==TEAM_COPS)
   {
    cops++;
   }
 }
}
Under your robbank command

Код:
if(cops<3) SendClientMessage(playerid,0xff0000aa,"Not enough cops online");

//then the rest of your script.
Protip: That's not going to reset the cops integer, that's just going to add on every second.


Код:
public CopsOnLine()
{
 cops = 0;
 new i;
 for(i=0;i<MAX_PLAYERS;i++)
 {
   if(gTeam[i]==TEAM_COPS)
   {
    cops++;
   }
 }
}
Reply
#8

Can u do it for me please add me msn khibs@hotmail.com .. i don't want to fuck the script again.

Thanks mate..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)