[request] hq - 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: [request] hq (
/showthread.php?tid=122440)
[request] hq -
02manchestera - 22.01.2010
can some one tell me how to make a entrance point only work for a faction for a HQ thanks
Re: [request] hq -
sidhu123 - 22.01.2010
If this is what you mean:
A gate or something similar only opens if the player is of a certain team, use gTeam with PlayerToPoint or a Command.
Re: [request] hq -
02manchestera - 22.01.2010
well more a pickup to a intrior bu tht should work shouldnt it
Re: [request] hq -
sidhu123 - 22.01.2010
Quote:
Originally Posted by 02manchestera
well more a pickup to a intrior bu tht should work shouldnt it
|
Yup, it should.
This is what I use.
Код:
if (pickupid == grovep && gTeam[playerid] == TEAM_GROVE)
{
SetPlayerCheckpoint(playerid,-30.9233,-1128.3617,1.0781,3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "GO GO GO");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your on the wrong team!");
}