Group robbery command[+REP] -
MohammedZ - 11.06.2015
I Just Need a group robbery command I've tried many times But i failed Any ideas on how to do it? or if someone could do it for me i would be very thankful
Re: Group robbery command[+REP] -
MohammedZ - 25.06.2015
Any help? i just want to know how to get how much players in cp
Re: Group robbery command[+REP] -
kyriakos587 - 25.06.2015
Just advertise your server as much as you can
Re: Group robbery command[+REP] -
MohammedZ - 25.06.2015
What? Dont you even get the question? Im saying how to get how many players are in a checkpoint and you tell me to advertise my server --,-- ?
Quote:
Just advertise your server as much as you can
|
Re: Group robbery command[+REP] -
Haydz - 25.06.2015
Hi,
To see how many players are in the checkout you can use IsPlayerInCheckpoint()
https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint
- create a var which counts player (make it start at 0)
- loop through all players
- check if player is in robbery checkpoint
- if player is in checkpoint then +1 to your count var.
At the end of your loop you will be able to see how many people are within the checkpoint

.
Re: Group robbery command[+REP] -
MohammedZ - 25.06.2015
Quote:
Haydz
Hi,
To see how many players are in the checkout you can use IsPlayerInCheckpoint()
https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint
- create a var which counts player (make it start at 0)
- loop through all players
- check if player is in robbery checkpoint
- if player is in checkpoint then +1 to your count var.
At the end of your loop you will be able to see how many people are within the checkpoint .
|
Okay Okay IsplayerIncheckpoint wont this do it to all the checkpoints?
Look, i need explanation with a code if you can :/
Like i want to make a group robbery when a player types /teamrobbery the people who are in same checkpoint the money splits to all of them like i just need to define the players in checkpoint and then i can make it. can you send me an explanation with code? i know them visually but not typically i dont know what you are talking about now :/
Can you explain me more or give me a link :/ ?
Re: Group robbery command[+REP] -
MohammedZ - 25.06.2015
Okay now i get it so how to define a checkpoint without being able to have it in dynamic cp?
Ex: IsplayerinCheckpoint(playerid, FourdragonsCP)
Re: Group robbery command[+REP] -
MohammedZ - 25.06.2015
OMG HAYDZ! YOU HELPED ME ALOT THANKYOU!
Ps: By the way i have played in your server for a while and i liked it

it was my first samp server that i played on :
Keep up the good work!
+REP!