Giveplayermoney - 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: Giveplayermoney (
/showthread.php?tid=387559)
Giveplayermoney -
Mustafa6155 - 25.10.2012
Hey guys can someone help me with giveplayermoney only rcon can give an CMD: or Onplayercommandtext please
Re: Giveplayermoney -
[HK]Ryder[AN] - 25.10.2012
pawn Код:
CMD:givemoney(playerid, params[])
{
new targetid, ammount;
if(sscanf(params,"ui", targetid, ammount)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /givemoney [PlayerID] [Ammount]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"Error: This command is only for RCON Admins");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to your server!");
GivePlayerMoney(targetid, ammount);
return 1;
}
You need to do /givemoney playerid amount for it to work
Re: Giveplayermoney -
Mustafa6155 - 25.10.2012
first: No works logged in as rcon did /givemoney
Second: i didnt see if i only type /giveplayer money i dont see the other things
third: he dont give cash??
help please
Re: Giveplayermoney -
[HK]Ryder[AN] - 25.10.2012
1. Did you add this cmd to your gamemode?
2. Is it inside a callback?
3. Have you included sscanf?
4. is sscanf the latest version?
Re: Giveplayermoney -
Mustafa6155 - 25.10.2012
i did under new files then i have sscanf2 and yes under CMD gamemode
Re: Giveplayermoney -
Mustafa6155 - 25.10.2012
i got any thing
Re: Giveplayermoney -
Mustafa6155 - 26.10.2012
please no works
Re: Giveplayermoney -
gtakillerIV - 26.10.2012
The command he gave you should work, your problem is that you don't understand much from what we say.
Re: Giveplayermoney -
Mustafa6155 - 26.10.2012
no i understand but can it no works becuse dunoo i dont have than cmd Please help
Re: Giveplayermoney -
Mafioso97 - 26.10.2012
lol, gtakillerIV is correct, you kind of are losing sight of the aim of your topic; the first reply had your answer, but unfortunately your lack of skill/understanding in scripting renders it useless; so I advise either to start learning how to script or hire someone to do so for you.