[HELP]Gate
#2

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!

Reply


Messages In This Thread
[HELP]Gate - by aleksandra - 17.04.2009, 13:07
Re: [HELP]Gate - by krisis32 - 17.04.2009, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)