[HELP] Want to tele when I go into Pickup..how?
#1

Can someone please give me a FS witch wich i can go into a pickup and get teleported then?
I am new and I want to see how such script looks like.
Reply
#2

pawn Код:
public OnPlayerPickupPickup(playerid, pickupid)
{
if(pickupid == ....)
{
SetPlayerPos(the teleport pos
}
}
Reply
#3

yeah i know that but if i get this in pawno i gets me 4 errors
can someony PLEASE write the whole FS for such thing..?
Reply
#4

Quote:
Originally Posted by ParmeSan
yeah i know that but if i get this in pawno i gets me 4 errors
can someony PLEASE write the whole FS for such thing..?
Here's a example

pawn Код:
#include <a_samp>

new pickup1; //The pickup

public OnGameModeInit() //Use public OnFilterScriptInit() if its a filterscript.
{
    pickup1 = CreatePickup(1318, 2, -423.699341, 2201.723145, 42.926292); //Position of the pickup
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if (pickupid == pickup1) //If they piccked up pickup 1
    {
       SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836); //Position to teleport to
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)