help with scripting
#4

OnGameModeInit put this...

pawn Код:
AddStaticPickup(1239, 2, -2216.2722,2315.9092,7.5469);//My enter Pickup
On top of the script under the #define's, put this...

pawn Код:
forward CheckForWalkingTeleport(playerid);
Then put this anywhere in the script or in the bottom...

pawn Код:
public CheckForWalkingTeleport(playerid)
{
    new Float:cx, Float:cy, Float:cz;
    GetPlayerPos(playerid, cx, cy, cz);
   
    if(PlayerToPointStripped(1, playerid,-2216.2722,2315.9092,7.5469, cx,cy,cz))
    {//The Entrance
        GameTextForPlayer(playerid, "~w~MY ENTRANCE", 5000, 1);
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,-2232.8948,2299.5195,19.8680);
        PlayerInfo[playerid][pInt] = 6;
    }
    return 1;
}
Reply


Messages In This Thread
help with scripting - by miroku68 - 08.08.2009, 01:52
Re: help with scripting - by coole210 - 08.08.2009, 01:59
Re: help with scripting - by miroku68 - 08.08.2009, 02:02
Re: help with scripting - by AcId n RaPiD - 08.08.2009, 02:08

Forum Jump:


Users browsing this thread: 5 Guest(s)