08.02.2012, 11:09
To Make that you can Enter / Exit from an LSPD Garage or ANY place , Here you go :
I Use STRCMP btw..
And do the same With the /Exit CMD but Reverse the Co-ordinates of IsPlayerInRangeOfPoint and SetPlayerPos - Hope i helped
I Use STRCMP btw..
PHP код:
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, r, x,y,z)) // Change the X Y Z to TheCo-ordinates where you type /enter and R to the Range
{
SetPlayerPos(playerid,x,y,z); // Change the X Y Z to the place where you get TP'ed to
SetPlayerInterior(playerid,No,); // Change No, to the Interior ID you want
GameTextForPlayer(playerid, "~w~PD", 5000, 1); // Change PD to the place where he get Tp'ed to name
SetCameraBehindPlayer(playerid);
return 1;
}
