SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/03/2012, 07:25 AM   #11
rumen98
Huge Clucker
 
Join Date: Feb 2012
Posts: 293
Reputation: 14
Default Re: Simple Rob System (Good For RP)

Quote:
Originally Posted by dimitris777 View Post
I test him the /robcity dosent work help me
use /robcityhall and /robgasstation i have a bug in text i re-upload now
rumen98 is offline   Reply With Quote
Old 09/03/2012, 09:20 AM   #12
misho1
Gangsta
 
misho1's Avatar
 
Join Date: Feb 2011
Location: Egypt
Posts: 790
Reputation: 23
Default Re: Simple Rob System (Good For RP)

good fs i can use this for my job system
__________________
Code:
My Works:
(1)PM (2)Colors Menu 
(3)AFK (4)Gangs War (5)Huge Jump (6)Stunts LSA (7)Stunts LVA (8)Water Jump (9)Zombies DM
misho1 is offline   Reply With Quote
Old 09/03/2012, 09:33 AM   #13
rumen98
Huge Clucker
 
Join Date: Feb 2012
Posts: 293
Reputation: 14
Default Re: Simple Rob System (Good For RP)

Quote:
Originally Posted by misho1 View Post
good fs i can use this for my job system
ok i will make v.2 after 1 week
i will add new destinations
rumen98 is offline   Reply With Quote
Old 09/03/2012, 01:10 PM   #14
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: Simple Rob System (Good For RP)

Quote:
Originally Posted by rumen98 View Post
ok i will make v.2 after 1 week
i will add new destinations
You should also instead of having all those rob commands, create a IsPlayerNearRob function like this:



pawn Code:
#define ROB_LS_CITYHALL 0 // Array == 0
#define NUMBER_OF_ROB_DEFINES 1

new CanPlayerRob[NUMBER_OF_ROB_DEFINES]

command(rob, playerid, params[])
{
     new RobID = IsPlayerNearRob(playerid);
     if(RobID == -1) return SendClientMessage(playerid, 0x0, "You have to be near either ATM, Bank etc");
     if(CanPlayerRob[RobID] == -1) return SendClientMessage(playerid, 0x0, "You cannot rob this place yet");
     // Do rest of rob things here.
}

stock IsPlayerNearRob(playerid)
{
     if(IsPlayerInRange(playerid, 5, 5, x, y, z)) return ROB_LS_CITYHALL;
     return -1;
}
you can also create a array, arrays allow you to loop through multiple cordinates quickly and efficient.

pawn Code:
enum robInfo
{
     RobString[100],
     Float: RobPos[3],
}

new RobCordinates[][robInfo] = {
    {"LS Cityhall", {0.000, 0.000, 0.000}} // Array position == 0
};

stock IsPlayerNearRob(playerid)
{
     for(new i; i < sizeof(RobCordinates); i++)
     {
          if(IsPlayerInRange(playerid, 5, 5, RobCordinates[i][RobPos][0], RobCordinates[i][RobPos][1], RobCordinates[i][RobPos][2])) return ROB_LS_CITYHALL; // Array position == 0
     }
     return -1;
}
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe is offline   Reply With Quote
Old 18/06/2012, 05:47 PM   #15
SamkyBoy
Little Clucker
 
Join Date: Jun 2012
Posts: 1
Reputation: 0
Default Re: Simple Rob System (Good For RP)

Ohhh when you rob you get money and then you loase money xD
SamkyBoy is offline   Reply With Quote
Old 18/06/2012, 05:54 PM   #16
mickos
Gangsta
 
mickos's Avatar
 
Join Date: Apr 2012
Location: Slijterij
Posts: 956
Reputation: 600
Default Re: Simple Rob System (Good For RP)

Well done.
Very nice man
mickos is offline   Reply With Quote
Old 19/06/2012, 07:08 AM   #17
sienal
Big Clucker
 
sienal's Avatar
 
Join Date: Feb 2012
Posts: 76
Reputation: 3
Default Re: Simple Rob System (Good For RP)

Nice
sienal is offline   Reply With Quote
Old 30/09/2013, 10:48 PM   #18
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 600
Reputation: 6
Default Re: Simple Rob System (Good For RP)

well you have to make random money rob system to rob, your system is depending on what weapon is player have, and this cause of scamming in the server.
AnonScripter is offline   Reply With Quote
Old 01/10/2013, 02:46 AM   #19
n0minal
High-roller
 
n0minal's Avatar
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 1,058
Reputation: 117
Default Re: Simple Rob System (Good For RP)

Nice FS.
__________________
Procurando por um scripter?
  • Desenvolvo diversos tipos de sistemas.
  • Preços altos? Nem pensar! A partir de R$ 20,00 você compra um script!
  • Compra 100% protegida, script do jeitinho que você quer ou seu dinheiro de volta!
  • Contato: themonkeylee (skype) ou contate-me via PM.
  • Formas de pagamento: Pagseguro ou Paypal.

    Não perca tempo, peça seus sistemas agora, você imagina, a gente cria
n0minal is online now   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
[FilterScript] Simple Drugs System (Good for RP) rumen98 Filterscripts 10 14/03/2012 06:48 PM
[Map] Simple LV Bus Station (Good for RP.) The_M Maps 5 26/02/2012 07:46 PM
Simple help for a good scripter ricardo178 Help Archive 5 20/03/2011 03:15 PM
[Include] [INC]Simple Reason Include[Good for kick and ban] Jonte92 Includes 7 23/05/2009 05:35 PM


All times are GMT. The time now is 01:22 PM.


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