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: 295
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: 794
Reputation: 23
Default Re: Simple Rob System (Good For RP)

good fs i can use this for my job system
__________________
196.205.159.181:7777
Gaming Overload server
Mappers needed, Reward setting him admin level 3 to level 5 and that depends on his mapping skills
misho1 is offline   Reply With Quote
Old 09/03/2012, 09:33 AM   #13
rumen98
Huge Clucker
 
Join Date: Feb 2012
Posts: 295
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: 972
Reputation: 631
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,381
Reputation: 156
Default Re: Simple Rob System (Good For RP)

Nice FS.
__________________
Procurando por um scripter?
__________________
  • Orçamento gratuito!
  • Preço justo, barato e combinado (a partir de R$ 5,00)!
  • Prazo de entrega combinado!
  • Diferentes tipos de sistemas!
  • Trabalhos com textdraws e remoção de bugs!
  • Contato (skype): script.nominal
  • Aceitamos: paypal e pagseguro (transferência, boleto e cartão)!

Peça seus sistemas agora mesmo, você imagina, a gente cria
n0minal 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
[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 12:06 AM.


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