[FilterScript] Rock's Coin System
#1

Rock's Coin System
Introduction :
This is a coin system , like second money.
Commands :
This filescript includes this commands
  • /givecoins - players can transfer coins to others
  • /coins - see other player coins
  • /mycoins - see how much coins you have
  • /setcoins - RCON Admin only , set's a player amount of coins .
New commands using coins :
This is an example of new commands using coins
Code:
CMD:hacked(playerid,params[])
{
pInfo[playerid][Coins] -= 100;
SendClientMessage(playerid,0xFFFFFFAA,"HaHaHa !!! You have been hacked ! 100 Coins are taken from you .");
return 1;
}
This function
Code:
pInfo[playerid][Coins] -= 100;
Takes 100 coins from player who typed /hacked
And this is another example
Code:
CMD:hacker(playerid,params[])
{
pInfo[playerid][Coins] += 100;
SendClientMessage(playerid,0xFFFFFFAA,"You Hacked somebody ! You get 100 Coins .");
return 1;
}
This function
Code:
pInfo[playerid][Coins] += 100;
Give's player 100 coins
The differences between this 2 functions are "+" and "-"
see here
Code:
pInfo[playerid][Coins] -= 100;
pInfo[playerid][Coins] += 100;
Download : Ps : I've created this because i've searched for something like this and didn't found .
Reply
#2

very useful for RP servers (: great job
Reply
#3

very nice
Reply
#4

The hacked commands make no sense, however, this system looks familiar ...
Reply
#5

Quote:
Originally Posted by Zh3r0
View Post
The hacked commands make no sense, however, this system looks familiar ...
I know but i make it quickly and it looks familiar to you because this system you will find in that server that you hate ...
Reply
#6

Quote:
Originally Posted by Rock18
View Post
I know but i make it quickly and it looks familiar to you because this system you will find in that server that you hate ...
aren't these 2 commands the same lol?

Code:
CMD:hacked(playerid,params[])
{
pInfo[playerid][Coins] -= 100;
SendClientMessage(playerid,0xFFFFFFAA,"HaHaHa !!! You have been hacked ! 100 Coins are taken from you .");
return 1;
}
 
CMD:hacker(playerid,params[])
{
pInfo[playerid][Coins] += 100;
SendClientMessage(playerid,0xFFFFFFAA,"You Hacked somebody ! You get 100 Coins .");
return 1;
}
Reply
#7

Yea , same thins , I left that commands in fs to see an example .
Reply
#8

Are you sure this is correct?

pawn Code:
public OnPlayerConnect(playerid) { SavePlayerCoins(playerid); return 1; }
 
public OnPlayerDisconnect(playerid, reason) { LoadPlayerCoins(playerid); return 1; }
Reply
#9

Yeah ... that works fine ... test and you will see...
Reply
#10

Nice!
Reply
#11

Quote:
Originally Posted by Tupac
Посмотреть сообщение
lolol his saveplayercoins is actually loading, and loadplayercoins is actually saving xD
Typo? o_0
Reply
#12

veryy good....rock....gj 10/10
Reply
#13

pawn Код:
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(7) : error 017: undefined symbol "numargs"
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(7) : warning 217: loose indentation
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(7) : error 029: invalid expression, assumed zero
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(7) : warning 215: expression has no effect
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(8) : warning 217: loose indentation
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : error 017: undefined symbol "setarg"
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : warning 215: expression has no effect
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : warning 215: expression has no effect
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : warning 215: expression has no effect
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : error 001: expected token: ";", but found ")"
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : error 029: invalid expression, assumed zero
C:\Users\ady-kryss\Desktop\Server SA-MP\pawno\include\sscanf.inc(40) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Help pe please
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)