If player is at > Interior
#1

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
Reply
#2

no only the creator
Reply
#3

Quote:
Originally Posted by Flavius
no only the creator
WHAT?
Reply
#4

i never heard of this
Reply
#5

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)