SA-MP Forums Archive
Gate Problem - 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: Gate Problem (/showthread.php?tid=71517)



Gate Problem - sandsnake - 01.04.2009

I have added all correct ... In time to make the command to open the gate i /fail
I want only admins with level 50000 to open the gate
The command is:
PAWN Code:
Quote:

//--------------------------[Pavelic Gate------------------------------------//
if(!strcmp(cmdtext, "/openpavelicgate", true))
{
if(PlayerInfo[playerid][pAdmin] == 1339)
{
MoveObject(pavelicgate,326.3566, -1183.8431, 76.5650, 5);
SetTimer("GateClose", 3000, 0);
SendClientMessage(playerid, 0x00D9D9FF,"The Gate Is opened and WILL CLOSE IN 5 SEC =>HURRY<=");
return 1;
}
return 0;
}

Dont work


Re: Gate Problem - gijsmin - 01.04.2009

you have a admin script?


Re: Gate Problem - Eraz0r - 01.04.2009

Код:
//--------------------------[Pavelic Gate------------------------------------//
if(!strcmp(cmdtext, "/openpavelicgate", true))
 {
  if(PlayerInfo[playerid][pAdmin] == 50000)
  {
   MoveObject(pavelicgate,326.3566, -1183.8431, 76.5650, 5);
   SetTimer("GateClose", 3000, 0);
   SendClientMessage(playerid, 0x00D9D9FF,"The Gate Is opened and WILL CLOSE IN 5 SEC =>HURRY<=");
   return 1;
  }
 return 0;
}



Re: Gate Problem - sandsnake - 03.04.2009

Problem Resolved>>Thank you Guys



//-----------------------[DeleteThisPost]--------------------------//
PAWN Code
Quote:

if(!strcmp(cmdtext, "/DeletePost", true))
{
if(PlayerInfo[playerid][pAdmin] == 50000)
{
DeletePost(GateProblem,forum.sa-mp.com/index.php?action=post;topic=96260.0;num_replies=2) ;
SetTimer(''ForumAdmin", 3000, 0);
SendClientMessage(playerid, 0x00D9D9FF,"This Post Will Be deleted by an admin =>HURRY<=");
return 1;
}
return 0;
}

Omg My ideas