Helping wit onplayerentercheckpoint
#3

1) Create a pickup (https://sampwiki.blast.hk/wiki/CreatePickup)
2) Under OnPlayerPickUpPickup, use SetPlayerPos and SetPlayerInterior to set player's pos and player's interior.
Example:
PHP код:
new pickup//at the top. 
//Under OnGameModeInit()
pickup CreatePickup(modeltypeFloat:XFloat:YFloat:ZVirtualworld);
//Under OnPlayerPickUpPickup
if(pickupid == pickup//If they pickup a pickup that you have created, then
{
    
SetPlayerPos(playerid,x,y,z); //Set their position
    
SetPlayerInterior(playerid,interior); //Set their interior
    
return 1;

Reply


Messages In This Thread
Helping wit onplayerentercheckpoint - by Mustafa6155 - 14.10.2012, 12:29
Re: Helping wit onplayerentercheckpoint - by Stigg - 14.10.2012, 12:34
Re: Helping wit onplayerentercheckpoint - by newbienoob - 14.10.2012, 12:41
Re: Helping wit onplayerentercheckpoint - by Mustafa6155 - 14.10.2012, 12:58
Re: Helping wit onplayerentercheckpoint - by Mustafa6155 - 14.10.2012, 13:16
Re: Helping wit onplayerentercheckpoint - by gtakillerIV - 14.10.2012, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)