How to apply a command to only 1 interior?
#1

Hi people,

I've added a small line of coding to a filterscript. This script stops the person from /taxi (teleport) out of jail.

Within the taxi script I have put:
Код:
			
	    if(GetPlayerInterior(playerid) == 3) // Jail interior ID
	        {
	         format(string,sizeof(string),"ERROR: No taxi for you sunshine!"); // jail message
                 return SendClientMessage(playerid, 0xFF0000AA, string);
		}
The only problem is, other interior locations have the same ID. http://weedarr.wikidot.com/interior


Would I have to swap this " if interior 3" to "if in jail" ??


if so, how would I get the status (if jailed is true) ?? (I'm using LAdmin)


Thanks for any help
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)