Money ship
#1

Hi, I want to make a ship that every second gives 5 cash to any player in there.
I know how to give any player the money but I dont know how to make it happen every 1 second.
Can anybody help me here?
Reply
#2

PHP код:

SetTimer
("SHIPMONEY"1000true);

forward SHIPMONEY();

public 
SHIPMONEY()
{
     for(new 
0GetPlayerPoolSize(); <= jx++)
     {
          if(!
IsPlayerConnected(x) || IsPlayerNPC(x)) continue;
          if(
PlayerInShip(x)) //or what ever your function is to check
          
{
               
GivePlayerMoney(x5);
          }
     }
     return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)