PayDay for different factions
#1

Aloha everyone.
I have a little issue...
How am I supposed to set payday for factions? Let's say i want the Police Department get 9,400$ / hour. How can I do this?
Reply
#2

pawn Код:
public IsACop(i)
{
  if(/*insert the variable that stores whether i is a cop*/ == true) return true;
  return false;
}

public PayDay()
{
  for(new i=0; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i) && IsACop(i))
    {
      GivePlayerMoney(i, 9400);
    }
  }
}

public OnGameModeInit()
{
  SetTimer(PayDay, 600000, true);
}
Reply
#3

are you using vortex? Or what are you using?
Reply
#4

if you are using Vortex you would do this

public PayDay()
{
new value = 9400+random(1000);
if(IsPlayerConnected(i))
{
if(Player[playerid][Group] == (policegroup))
{
GivePlayerMoney(playerid, copmoney);
}
}
return 1;
}
Reply
#5

what sricpt you using?
Reply
#6

I'm using LARP.
Reply
#7

Quote:
Originally Posted by huliojeans
Посмотреть сообщение
I'm using LARP.
and that are Ravens right?
Reply
#8

Majbe Jag maste kolla
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)