PlayerCheckPoint
#1

If player enter a checpoint then server send player a money (500$)
How to make that ?
sorry my bad english..
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

Here, look at the functions and edit if needed.
Reply
#3

Quote:
Originally Posted by ʞɹod ɹǝpıds || SpiderPork
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

Here, look at the functions and edit if needed.
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
Reply
#4

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
Reply
#5

thnx.. it's now working..
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)