SA-MP Forums Archive
Need help Refund Box - 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: Need help Refund Box (/showthread.php?tid=319801)



Need help Refund Box - Just rp - 20.02.2012

Hey guys.

i wanna make a Refund box for new players.
If you typ /getrefund that you get:

10 Crack
10 pot
level 3
500k Cash
1mill Bank
ETC

Can anyone help me with that ??
I really hope it. and you get ++++rep


Re: Need help Refund Box - MP2 - 20.02.2012

Can't you just give it to them when they register? Why does it have to be a seperate command?


Re: Need help Refund Box - Just rp - 20.02.2012

Hmm.
Because i thought its nicer that they need to typ a command.
Because its more roleplay,
and i want it than for only level 1 people
Youknow :P


Re: Need help Refund Box - MP2 - 20.02.2012

Typing a command isn't really realistic anyway. You don't have commands in real life. Why not make a checkpoint or something? (Okay, checkpoints aren't real, but meh.)

Anyway, you need to post your variable declarations. Essentially you need this:

pInfo[playerid][pCrack] = 10;

or whatever your variables are.


Re: Need help Refund Box - Just rp - 20.02.2012

Can ya help me a little more :S


Re: Need help Refund Box - YoungWildFree - 20.02.2012

I'm trying to do it as well.


Re: Need help Refund Box - Tanush123 - 20.02.2012

When they use the command just make it save in a variable that also saves in your dini or whatever,
pawn Код:
PlayerInfo[playerid][UsedRefund] = 1;
And if the person trys to use the refund command add on top
pawn Код:
if(PlayerInfo[playerid][UsedRefund] == 1) return SendClientMessage(playerid,0xFF0000FF,"ERROR: You have used this command");



Re: Need help Refund Box - Vince - 20.02.2012

Refunds are noob. Don't use it unless you want a fucked up server economy.


Re: Need help Refund Box - YoungWildFree - 20.02.2012

It's prob. already fucked up that they need a refund lolz


Re: Need help Refund Box - YoungWildFree - 21.02.2012

We need a script for this D: