If player is at > Interior - 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: If player is at > Interior (
/showthread.php?tid=77576)
If player is at > Interior -
Sal_Kings - 12.05.2009
How do i make a script like this (I have no experince on how to start so please dont just give me a fast tip give me a small example, Also I dont know what section to put the script in)
If a player is standing at a certian location it takes them into a interior.
And if a player is standing in a certian interior they have accses to a command...But if they arent in that certian interior they dont have accsess
Re: If player is at > Interior -
Flavius - 12.05.2009
no only the creator
Re: If player is at > Interior -
Sal_Kings - 12.05.2009
Quote:
Originally Posted by Flavius
no only the creator
|
WHAT?
Re: If player is at > Interior -
Flavius - 12.05.2009
i never heard of this
Re: If player is at > Interior -
Weirdosport - 12.05.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(GetPlayerInterior(playerid) == 3) //Change interior to suit you (change the 3)
{
//command
}
else
{
SendClientMessage(playerid, 0xFF00FFFF, "You're not in the right interior, sorry");
}
}
return 0;
}