01.09.2015, 18:03
I make a job system, and i want if the player have premium account to revice much money than normal players
But i want to revice money like normal player and premium player sorry for bad english
here it's the OnPLayerEnterCheckpoint
Thanks
But i want to revice money like normal player and premium player sorry for bad english
here it's the OnPLayerEnterCheckpoint
PHP код:
else if(DrugsCP[playerid] == 1)
{
if(PlayerInfo[playerid][pPremiumAccount] == 1 && DrugsDeliver[playerid] == 1 )
{
DisablePlayerCheckpoint(playerid);
new dstring[128];
new randomdrugs = 99999 + random(9999);
format(dstring,sizeof(dstring),"Reviced pAccount: $%s",FormatNumber(randomdrugs));
GivePlayerCash(playerid,randomdrugs);
SendClientMessage(playerid,COLOR_GRAD1,dstring);
SetTimerEx("DrugsTimer",3000,0,"i",playerid);
}
else if(DrugsDeliver[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
new dstring[128];
new randomdrugs = 4000 + random(2000);
format(dstring,sizeof(dstring),"Reviced: $%s",FormatNumber(randomdrugs));
GivePlayerCash(playerid,randomdrugs);
SendClientMessage(playerid,COLOR_GRAD1,dstring);
SetTimerEx("DrugsTimer",30000,0,"i",playerid);
}
}