SA-MP Forums Archive
Disable player teleporting inside tuning garages - 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)
+--- Thread: Disable player teleporting inside tuning garages (/showthread.php?tid=383848)



Disable player teleporting inside tuning garages - .v - 09.10.2012

Well I have noticed that when I teleport to a player that is inside a tuning garage it teleports me inside. How do I disable teleporting inside a tuning garage and check if player is in a tuning garage?

pawn Код:
CMD:go(playerid, params[])
{
    new ID;//creates a new something idk what we call it :P but it is defined later on or used in something this 1 is used in next line
    if(sscanf(params, "u", ID)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /go [PlayerID/PartofName]");//checks if you have written something after /goto if no it sends error
    if(!IsPlayerConnected(ID) || ID == playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> This player is Offline or it is Yourself");
}