Tessék egy példa:
SZERK:
//-------------------------------------
//
// Pickup by BitS
//
//-------------------------------------
#include <a_samp>
new VHPickup;
public OnGameModeInit()
{
VHPickup = CreatePickup(2803,1,X,Y,Z); //VH
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == VHPickup)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828); //ahova rakja.
GameTextForPlayer(playerid, \"~w~Udv a varoshazan.\", 5000, 1);
}
return 1;
}