pickpocket job
#7

Well if you can script, i'll give you some pointers and you can write your own command.

Firstly, you will need to save both the robber's coordinates and the victims coordinates.

Then, you'll need to check if the robber's coordinates are in range of the victims.

Following this, you'll need to factor in a random number, and on certain numbers the attempt either succeeds or fails.

You may also consider creating a skill that permits the player to have a better chance of succeeding once he's gained a higher skill level.

Useful commands:

pawn Код:
GetPlayerPos(playerid, Float:x, Float:y, Float:z)

IsPlayerInRangeOfPoint(playerid, Float:radius, Float:x, Float:y, Float:z)

GivePlayerMoney(playerid, value)

rand = random(/*max*/)

switch(rand)
{
    case /*case*/:
    {

    }
}
Reply


Messages In This Thread
pickpocket job - by Bmrk85 - 14.12.2011, 15:45
Re: pickpocket job - by Rob_Maate - 14.12.2011, 15:57
Re: pickpocket job - by Ballu Miaa - 14.12.2011, 16:05
Re: pickpocket job - by Bmrk85 - 14.12.2011, 19:00
Re: pickpocket job - by Rob_Maate - 14.12.2011, 20:06
Re: pickpocket job - by Bmrk85 - 15.12.2011, 13:00
Re: pickpocket job - by Rob_Maate - 15.12.2011, 16:59
Re: pickpocket job - by Bmrk85 - 15.12.2011, 18:03
Re: pickpocket job - by bartje01 - 15.12.2011, 18:11
Re: pickpocket job - by Ballu Miaa - 16.12.2011, 03:03

Forum Jump:


Users browsing this thread: 1 Guest(s)