24.01.2016, 10:13
I need a good payday system, I don't really know how to make a payday system, can someone link one to me?
new paydayactivetimer[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
paydayactivetimer[playerid] = SetTimerEx("paytheplayer", 30000, false, "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(playerid, 1000);// its depends on you how much cash you want to give him
SendClientMessage(playerid, -1, "You Received $1000 its PayDay");
paydayactivetimer[playerid] = SetTimerEx("paytheplayer", 30000, false, "d", playerid);// 30000 is the time here
return 1;
}