Payday
#2

i think the code will be like this not tested yet.

PHP код:
new paydayactivetimer[MAX_PLAYERS];
public 
OnPlayerSpawn(playerid)
{
paydayactivetimer[playerid] = SetTimerEx("paytheplayer"30000false"d"playerid);// 30000 is the time here you can change it.
return 1;
}
// paste in the end of the script.
forward paytheplayer(playerid);
public 
paytheplayer(playerid)
{
GivePlayerMoney(playerid1000);// its depends on you how much cash you want to give him
SendClientMessage(playerid, -1"You Received $1000 its PayDay");
paydayactivetimer[playerid] = SetTimerEx("paytheplayer"30000false"d"playerid);// 30000 is the time here
return 1;

Reply


Messages In This Thread
Payday - by AndreiWow - 24.01.2016, 10:13
Re: Payday - by Arshman - 24.01.2016, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)