09.12.2009, 22:08
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.
I am new and I want to see how such script looks like.
public OnPlayerPickupPickup(playerid, pickupid)
{
if(pickupid == ....)
{
SetPlayerPos(the teleport pos
}
}
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..? |
#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;
}