04.09.2010, 02:27
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:
- 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).
}