21.02.2012, 14:05
It seems like that's all your entire script, I thought it's only a tiny part of it, yet I was wrong.
pawn Код:
#include <a_samp> // You must include this whenever starting a new script.
enum RefundStuffs
{
Crack,
Pot,
level,
BankCash
}
new Refund[MAX_PLAYERS][RefundStuffs];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refund", cmdtext, true, 10) == 0)
{
Refund[playerid][Crack] = 10;
Refund[playerid][Pot] = 10;
Refund[playerid][level] = 3;
Refund[playerid][BankCash] = 1000000;
GivePlayerMoney(playerid,500000);
return 1;
}
return 0;
}