Script Request : Hold The Pirate Ship
#1

Hi i am asking for somebody to make (or find) me a script that is for the pirate ship, where if you stay on it, you get money continuously until you get off.

Thanks ! Coz.
Reply
#2

There is a topic for this but I'll just give you a little hint on how to do this.

pawn Код:
forward PirateShip()
SetTimer("PirateShip",2000,true); //Delay is set to 2 seconds
pawn Код:
public PirateShip()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerInArea(BLAHDEBLAH)) // Insert the stuff in there
    {
      GivePlayerCash(i,500); // The amount per 2 seconds :)
      GameTextForPlayer(i,"~g~You are holding the PirateShip! You have earned $500",1000,3);
    }
  }
  return 1;
}
Reply
#3

what do i put in the "blahdehblah"?
Reply
#4

come on need reply
Reply
#5

https://sampwiki.blast.hk/wiki/Useful_Fu...IsPlayerInArea

The Format is something like this:

IsPlayerInArea(2, 2.0, 2.0, 4.0, 4.0);
Reply
#6

yes, would i just put that or do i need coordinates?
Reply
#7

You need Coordinates for the pirate ship,

Go To the Pirate ship use /save Pirateship and get the coordinates
Reply
#8

can i put playerid, 2.0, 2.0, 4.0, 4.0?
Reply
#9


Yup
Reply
#10

ok i dont understand what i put here :

,2.0, 2.0, 4.0, 4.0

instead of those numbers :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)