SA-MP Forums Archive
[HELP]Gate - 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: [HELP]Gate (/showthread.php?tid=73733)



[HELP]Gate - aleksandra - 17.04.2009

Heya guys...


I just want to ask if anyone have a time and can make me 2 gates which can moves with command ... on player name protection ^^

Thanks...


Re: [HELP]Gate - krisis32 - 17.04.2009

pawn Код:
new pddurvis;
#define TEAM_TEAMNAME 1

public OnGameModeInit()
{
pddurvis =CreateObject(your gates or doors cords n stuff);//doors closed
CreateObject(your gates or doors cords n stuff);//opened doors
return 1;
{

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/cpd1", true) == 0)
  {
  MoveObject(pddurvis1,cords,2.00); // Put your cords in here
    if(gTeam[playerid] != TEAM_TEAMNAME) return SendClientMessage(playerid, COLOR_RED, "You are not a cop");
  return 1;
  }

if(strcmp(cmdtext, "/opd1", true) == 0)
  {
  MoveObject(pddurvis1,253.027435,115.453544,1003.218750,2.00); // Put your cords in here
    if(gTeam[playerid] != TEAM_NAME) return SendClientMessage(playerid, COLOR_RED, "You are not a cop");
  return 1;
  }
 return 1;
}
NEXT TIME SEARCH!