SA-MP Forums Archive
pickpocket job - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: pickpocket job (/showthread.php?tid=303604)



pickpocket job - Bmrk85 - 14.12.2011

Hy! I want to make a pickpocket job, but i don't know how to start it. It's simple, but not for me xD. So if a player is near to an other, he can steal from the other. If anyone can help me, i will be happy


Re: pickpocket job - Rob_Maate - 14.12.2011

Bad idea.
We had this once on a server I used to play on, so we used to sneak up to the recently AFK players and spam it for millions


Re: pickpocket job - Ballu Miaa - 14.12.2011

We can use if for it that if the player is AFK.
pawn Код:
SendClientMessage(playerid,COLOR_Whatyouwant,"Stop PickPocketing AFKer's. Do it again and you will be warned as well as kicked");



Re: pickpocket job - Bmrk85 - 14.12.2011

sooo....anyone can write it to me? xd


Re: pickpocket job - Rob_Maate - 14.12.2011

What sort of server are you trying to run?
Going headfirst into a community with no knowledge of scripting is a bad idea.
Players expect regular updates or they'll just turn to a different server


Re: pickpocket job - Bmrk85 - 15.12.2011

I want to run a role play server, i can script, but i don't no how to do it


Re: pickpocket job - Rob_Maate - 15.12.2011

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*/:
    {

    }
}



Re: pickpocket job - Bmrk85 - 15.12.2011

hmm much thanks, i think i can write it now


Re: pickpocket job - bartje01 - 15.12.2011

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
Bad idea.
We had this once on a server I used to play on, so we used to sneak up to the recently AFK players and spam it for millions
I've made my own pickpocket system. After your pickpocket you have to wait for 5 mins.
You can only rob an amount of 1000-20000 randomly. I've done this so other jobs will make sence.


Re: pickpocket job - Ballu Miaa - 16.12.2011

Quote:
Originally Posted by bartje01
Посмотреть сообщение
I've made my own pickpocket system. After your pickpocket you have to wait for 5 mins.
You can only rob an amount of 1000-20000 randomly. I've done this so other jobs will make sence.
Will love to see that. Share it among us!