SA-MP Forums Archive
[FilterScript] [FS] Givecash system By Don_(GH),working perfect. - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Givecash system By Don_(GH),working perfect. (/showthread.php?tid=138104)



[FS] Givecash system By Don_(GH),working perfect. - HAYTXA - 31.03.2010

This is givecash system,its very useful for RP servers.
I know some people who are searching for scripts like this and can't find already made ones, so i decided to make and publish it.
I tested this script on many Gamemodes and it worked perfect

How to Install?
1.Download.
2.Put the .amx file to your filterscripts folder.
3.Write the name in server.cfg filterscripts line.
4.Lunch the gamemode.

Download it Here

For Bugs report here so i will try to fix them.
Don't Remove Credits
Don't claim it as yours

Sorry For Mistakes


Re: [FS] Givecash system By Don_(GH),working perfect. - V1ceC1ty - 31.03.2010

It's just a /givecash command?


Re: [FS] Givecash system By Don_(GH),working perfect. - HAYTXA - 31.03.2010

yes,/givecash player id amount
it will give from your money and not like admin commands.


Re: [FS] Givecash system By Don_(GH),working perfect. - [TGS]FLUPPY - 31.03.2010

nice! i use it for my server!


Re: [FS] Givecash system By Don_(GH),working perfect. - HAYTXA - 31.03.2010

Quote:
Originally Posted by [TGS
FLUPPY ]
nice! i use it for my server!
I am happy cause i helped


Re: [FS] Givecash system By Don_(GH),working perfect. - Elorreli - 31.03.2010

Hm, i wouldn't call this a "system" since it's a single command. And it's not very hard to make either, and what's the meaning with the "Givecashdelaytimer"?


Re: [FS] Givecash system By Don_(GH),working perfect. - HAYTXA - 31.03.2010

Quote:
Originally Posted by Streber
Hm, i wouldn't call this a "system" since it's a single command. And it's not very hard to make either, and what's the meaning with the "Givecashdelaytimer"?
What you understand when u say that?"Givecashdelaytimer"
I am new here its my second script......I think you were new too


Re: [FS] Givecash system By Don_(GH),working perfect. - @TheShadow@ - 01.04.2010

uhm isn't it just copied out of lvdm as i see givecashdelay??

It's not a FS it's just a command... nothing unique...


Re: [FS] Givecash system By Don_(GH),working perfect. - HAYTXA - 01.04.2010

Quote:
Originally Posted by @TheShadow@
uhm isn't it just copied out of lvdm as i see givecashdelay??

It's not a FS it's just a command... nothing unique...
No i didn't copy it,its just the same method.
As i said,its my second script and its not very special but it still be useful.


Re: [FS] Givecash system By Don_(GH),working perfect. - Dr.Ghost - 23.11.2010

THANKS GUyss releasing it i have find mi get found here,working ty man


Re: [FS] Givecash system By Don_(GH),working perfect. - Bull_BoY - 23.11.2010

nice for beginner


Re: [FS] Givecash system By Don_(GH),working perfect. - d0nTtoucH - 23.02.2013

give the pwn fail


AW: [FS] Givecash system By Don_(GH),working perfect. - Youtube12 - 23.02.2013

Upload it in Pastebin or Give the code.


Re: [FS] Givecash system By Don_(GH),working perfect. - Gamer_007 - 23.02.2013

Nice For beginer and make a pastebin.


Re: [FS] Givecash system By Don_(GH),working perfect. - Private200 - 23.02.2013

Not a system, just a command.. I didn't check it but put pastebin please.


AW: [FS] Givecash system By Don_(GH),working perfect. - Youtube12 - 25.02.2013

Why i get this warnings?


Код:
C:\Users\Billy\Desktop\MY Server 0.3w\gamemodes\MYServer.pwn(19596) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Billy\Desktop\MY Server 0.3w\gamemodes\MYServer.pwn(19600) : warning 219: local variable "cmd" shadows a variable at a preceding level
C:\Users\Billy\Desktop\MY Server 0.3w\gamemodes\MYServer.pwn(19601) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
C:\Users\Billy\Desktop\MY Server 0.3w\gamemodes\MYServer.pwn(19601) : warning 219: local variable "idx" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.



Re: [FS] Givecash system By Don_(GH),working perfect. - dakata994 - 26.02.2013

Omg this is getted from lvdm gamemode just with pawno open lvdm gamemode and copy the /givecash commands and you are done !


Re: [FS] Givecash system By Don_(GH),working perfect. - dakata994 - 26.02.2013

Quote:
Originally Posted by HAYTXA
Посмотреть сообщение
No i didn't copy it,its just the same method.
As i said,its my second script and its not very special but it still be useful.
There is more easy way to copy/get it just open with Pawno "lvdm" at your Gamemodes folder and there is /givecash command and just copy .


Re: [FS] Givecash system By Don_(GH),working perfect. - Glad2BeHere - 26.02.2013

Get ZCMD + Sscanf and you will have
pawn Код:
CMD:givecash(playerid, params[])
{
    new playerb, amount;
    if(sscanf(params, "ui", playerb, amount)) return SendClientMessage(playerid,-1, "USAGE: /givecash [playerid] [amount]");
    if(amount <= 0) return SendClientMessage(playerid, -1, "Invalid money amount.");
    if(playerid == playerb) return SendClientMessage(playerid, -1, "You can't pay money to yourself.");
    if(!IsPlayerNearPlayer(playerid, playerb, 2)) return SendClientMessage(playerid, -1, "You are too far away from that player.");
    if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid, -1, "You don't have that much on you right now.");
    GivePlayerMoney(playerid, -amount);
    GivePlayerMoney(playerb, amount);
    return 1;
}


stock IsPlayerNearPlayer(playerid, targetid, Float:radius)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(targetid, x, y, z);
    if(IsPlayerInRangeOfPoint(playerid, radius ,x, y, z))
    {
        return 1;
    }
    return 0;
}