Gang House Help - 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: Gang House Help (
/showthread.php?tid=173882)
Gang House Help -
Shockey - 03.09.2010
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.
Re: Gang House Help -
Toni - 04.09.2010
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).
}