04.09.2010, 00:26
Thanks.
@Luka P.: There's most likely not going to be another version, unless it's needed. If there is, I'll use PVars.
@The toni: It's simple
They are able to buy a MP5 that costs $5000.50
@Luka P.: There's most likely not going to be another version, unless it's needed. If there is, I'll use PVars.
@The toni: It's simple
pawn Код:
if(!strcmp(cmdtext, "/buy", true))
{
new d, c;
GetPlayerMoneyEx(playerid, d, c);
if(d > 5000 || d == 5000 && c >= 50)
{
GivePlayerWeapon(playerid, 29, 500);
TakePlayerMoneyEx(playerid, 5000, 50);
}
return 1;
}