Gang House Help
#1

Ok guys if anyone can help or tell me if this is possible.

What I want is I've mapped a gang house for my clan [SnSK].
for this gang house Im soon gonna make the markers to enter and exit the house.
Now what I want is when you walk in the marker it will only teleport people with the tag [SnSK].

You may not be able to help me Till I make the markers, if so once I made I will post the code. Any help is appreciates.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)