Gang House Help
#2

I'm guessing the markers are gonna be a pickup of some sort; Use OnPlayerPickupPickup(playerid, pickupid).
- Assign a var to the marker (pickup) example: new marker1 = CreatePickup(...).
Then under OnPlayerPickupPickup(playerid, pickupid), do something like this:
pawn Код:
if(pickupid == marker1)
    {
        new
            pName[24]
        ;
        GetPlayerName(playerid, pName, 24);
        if(strfind(pName, "[SnSK]", true)) return 1; //If the script finds the clan tag, it will return 1, which allows the person to enter.
        return 0; //else if they don't have the clan tag, they will be rejected (hopefully, I haven't tested this code).
    }
Reply


Messages In This Thread
Gang House Help - by Shockey - 03.09.2010, 22:48
Re: Gang House Help - by Toni - 04.09.2010, 02:27

Forum Jump:


Users browsing this thread: 1 Guest(s)