18.04.2010, 18:30
pawn Код:
if(strcmp(cmd, "/bizmoney", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBizOwn] < 1)
{
if(BizCash[playerid] = 0)
{
GivePlayerMoney(playerid, 500000);
SendClientMessage(playerid, COLOR_GREEN, "You got 500.000$ from The State!");
BizCash[playerid] = 1;
}
if(BizCash[playerid] = 1)
{
SendClientMessage(playerid, COLOR_GREEN, "You can get your Business money tomorrow!");
SetTimerEx("ResetBizCash", 86400000, 0, "d", playerid);
BizCash[playerid] = 0;
}
}
}
return 1;
}