SA-MP Forums Archive
in transfender - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: in transfender (/showthread.php?tid=159097)



in transfender - aNdReSk - 12.07.2010

hey is there a way to identify if a player is in transfender


Re: in transfender - bigcomfycouch - 12.07.2010

There is not a native function, but you could go into the transfender interior using an interior viewer. Then, check coordinates and see if the player is in that interior and near those coordinates.


Re: in transfender - bigcomfycouch - 12.07.2010

Also this function. It calls when you actually get your vehicle repaired in Transfender.

https://sampwiki.blast.hk/wiki/OnVehicleRespray


Re: in transfender - aNdReSk - 12.07.2010

thx couch and ded


Re: in transfender - ToPhrESH - 12.07.2010

Couldn't he use create an Area of the transfender and use isPlayerInArea and if they eneter have it to send you a message saying " 'Bob' Is in the Transfender"


Re: in transfender - Blt950 - 25.07.2010

I just made this, what is supposed to happen when you pay and spray (ded said it would work in Pay & Spray)
But it did not.

pawn Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
        SendClientMessage(playerid, COLOR_CMD, "     - Payed $500 for the respray");
        PlayerInfo[playerid][pCash] -= 500;
    }
    return 1;
}
Does anyone know how to make it work on a pay and spray?