SA-MP Forums Archive
Help In Entrance - 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)
+--- Thread: Help In Entrance (/showthread.php?tid=629803)



Help In Entrance - Ayyash - 04.03.2017

Hello,

I Create A Entrance For My Server Here is The Code,

#include <a_samp>

new clinfo;

public OnFilterScriptInit()
{

print("******************************************" );
print(" ");
print(" ");
print(" Entrance Script ");
print(" By ");
print(" Ayyash ");
print(" for ");
print(" My Server ");
print("******************************************" );
//-------------------------------------------------------------------------------------------
clinfo = CreateObject(19607, 1346.58484, 1256.81201, 10.57500, 0.00000, 0.00000, 0.00000);

//------------------------------------------OBJECT---------------------------------

return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == clinfo) // Clinfo Entrance information
{
SetPlayerPos(playerid, 1351.03271, 1260.38562, 10.57500);
}

return 1;
}

But When Player Go to Checkpoint He Didn't Teleport For SetPlayerPos If Anyone Can Please Help Me
Here is The Picture,



i Hope Soon Someone Help me because This is Very Urgent project


Re: Help In Entrance - Sabur - 04.03.2017

You don't create a object, you create a pickup.

Change CreateObject(19607, 1346.58484, 1256.81201, 10.57500, 0.00000, 0.00000, 0.00000); to
CreatePickup(19607, 1346.58484, 1256.81201, 10.57500, 0);


Re: Help In Entrance - Ayyash - 04.03.2017

Lol When I Put Create Pickup it is Showing A Error When I Compile

C:\Users\nawas\Downloads\vip room\filterscripts\vehicleelevator.pwn(1 : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: Help In Entrance - Edwin2801 - 04.03.2017

Emm...
CreateObject -> CreatePickup
Sabur's mistake:
Код:
CreatePickup(19607, 23, 1346.58484, 1256.81201, 10.57500, 0);



Re: Help In Entrance - Ayyash - 04.03.2017

Oh it's Okay But When I Put CreateObject And Start The Server The Player Not Teleporting For SetPlayer Pos Why Please

I Already Post A picture


Re: Help In Entrance - Edwin2801 - 04.03.2017

Maybe, because we told you to use CreatePickup instead CreateObject?


Re: Help In Entrance - Ayyash - 04.03.2017

But When i Use CreatePickup it is It is Showing The Error,

C:\Users\nawas\Downloads\vip room\filterscripts\vehicleelevator.pwn(1 : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Re: Help In Entrance - Edwin2801 - 04.03.2017

Quote:
Originally Posted by Edwin2801
Посмотреть сообщение
Код:
CreatePickup(19607, 23, 1346.58484, 1256.81201, 10.57500, 0);
I correct that early


Re: Help In Entrance - RyderX - 04.03.2017

Try this now

PHP код:
#include <a_samp>
new clinfo;
public 
OnFilterScriptInit()
{
print(
"******************************************" );
print(
" ");
print(
" ");
print(
" Entrance Script ");
print(
" By ");
print(
" Ayyash ");
print(
" for ");
print(
" My Server    ");
print(
"******************************************" );
//-------------------------------------------------------------------------------------------
clinfo CreatePickup(19607231346.584841256.8120110.575000);
//------------------------------------------OBJECT---------------------------------
return 1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
if(
pickupid == clinfo// Clinfo Entrance information
{
SetPlayerPos(playerid1351.032711260.3856210.57500);
}
return 
1;




Re: Help In Entrance - Ayyash - 04.03.2017

Really Thanks This is very Big help Again Thanks Thanks THanks