SA-MP Forums Archive
Redeem codes - 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: Redeem codes (/showthread.php?tid=642906)



Redeem codes - Tetragromaton - 09.10.2017

So, is there anyway to parse code that player typed in /promo <code> from .ini file by mxINI and give bonuses to player ? For example

cmd:redeem{
//There is code that parse all codes from promos.ini

//There should be code if code matchs with code typed in promos.ini
{
pInfo[playerid][pCash] += {parsed value from bonus}
}
}