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(19607, 23, 1346.58484, 1256.81201, 10.57500, 0);
//------------------------------------------OBJECT---------------------------------
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == clinfo) // Clinfo Entrance information
{
SetPlayerPos(playerid, 1351.03271, 1260.38562, 10.57500);
}
return 1;
}
Re: Help In Entrance -
Ayyash - 04.03.2017
Really Thanks This is very Big help Again Thanks Thanks THanks