[FilterScript] [FS] Givecash system By Don_(GH),working perfect.
#1

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
Reply
#2

It's just a /givecash command?
Reply
#3

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

nice! i use it for my server!
Reply
#5

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

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"?
Reply
#7

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
Reply
#8

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...
Reply
#9

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.
Reply
#10

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

nice for beginner
Reply
#12

give the pwn fail
Reply
#13

Upload it in Pastebin or Give the code.
Reply
#14

Nice For beginer and make a pastebin.
Reply
#15

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

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.
Reply
#17

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

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 .
Reply
#19

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)