Help In Entrance
#1

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

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);
Reply
#3

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

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

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

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

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

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

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;

Reply
#10

Really Thanks This is very Big help Again Thanks Thanks THanks
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)