SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 16/04/2018, 02:20 PM   #1
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 461
Reputation: 42
Default Samp PAYDAY per user.

PHP Code:
OngamemodeInit
SetTimer
("Payday"3600000true);


forward Payday();

public 
Payday()
{

   
    for(new 
i=0MAX_PLAYERSi++)
    {
        
pInfo[i][Money] += 400;
    }

    
SendClientMessageToAll(-1Heres your payday);

    return 
1;


My question is, how can I set this timer, per player in database?

I made this

enum Playerinfo
{
PayDay,
}


Payday row is set on MYSQL database.


and I don't want to make per hour for every player online, I want to set 60 minutes in mysql row, and when their minutes goes 0 it forwards payday + resets timer


and i don't know if payday script is made good
Zeus666 is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] Sistema de payday quando vc e vip de dar 3 leveis a cada payday didimk157 Português/Portuguese 8 26/06/2017 02:05 AM
How can i increase the payday on My Server?? Included Payday Code Samieastwood Server Support 4 12/08/2013 06:41 AM
SAMP User File doesn't appear. Hudsonn Client Support 2 11/08/2013 06:03 PM
[Ajuda] Payday fechando samp-server Lós Português/Portuguese 15 13/02/2011 01:56 AM
Looking for the SAMP user Chris_Hawk cstatus94 General 8 13/12/2010 02:46 PM


All times are GMT. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.