Script Request : Hold The Pirate Ship - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script Request : Hold The Pirate Ship (
/showthread.php?tid=94094)
Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
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.
Re: Script Request : Hold The Pirate Ship -
[HiC]TheKiller - 28.08.2009
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;
}
Re: Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
what do i put in the "blahdehblah"?
Re: Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
come on need reply
Re: Script Request : Hold The Pirate Ship -
Eazy_Efolife - 28.08.2009
https://sampwiki.blast.hk/wiki/Useful_Fu...IsPlayerInArea
The Format is something like this:
IsPlayerInArea(2, 2.0, 2.0, 4.0, 4.0);
Re: Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
yes, would i just put that or do i need coordinates?
Re: Script Request : Hold The Pirate Ship -
Eazy_Efolife - 28.08.2009
You need Coordinates for the pirate ship,
Go To the Pirate ship use /save Pirateship and get the coordinates
Re: Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
can i put playerid, 2.0, 2.0, 4.0, 4.0?
Re: Script Request : Hold The Pirate Ship -
Eazy_Efolife - 28.08.2009
Yup
Re: Script Request : Hold The Pirate Ship -
XxCozxX - 28.08.2009
ok i dont understand what i put here :
,2.0, 2.0, 4.0, 4.0
instead of those numbers :P