PlayerCheckPoint - 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: PlayerCheckPoint (
/showthread.php?tid=67264)
PlayerCheckPoint -
Reinix - 28.02.2009
If player enter a checpoint then server send player a money (500$)
How to make that ?
sorry my bad english..
Re: PlayerCheckPoint -
SpiderPork - 28.02.2009
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Here, look at the functions and edit if needed.
Re: PlayerCheckPoint -
Reinix - 01.03.2009
Quote:
Originally Posted by ʞɹod ɹǝpıds || SpiderPork
|
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\s.pwn(167) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\s.pwn(167) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\s.pwn(174) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
:P
Re: PlayerCheckPoint -
JaYmE - 01.03.2009
all you had to do was
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid); // or remove this so you can use it again
return 1;
}
how simple
Re: PlayerCheckPoint -
Reinix - 01.03.2009
thnx..

it's now working..
Re: PlayerCheckPoint -
Rks25 - 01.03.2009
But you need to know:
That if you add a second SetPlayerCheckPoint or anything, you need to make if() statements at OnPLayerEnterCheckpoint, else the client will simply crash.