Gates...
#4

When I click compile, it says Pawn Compiler has Stopped Working.

Code:
Код:
//-------------------------------[FrazZ's Gate]---------------------------------
	if(strcmp(cmd, "/fgateopen", true) == 0) { // Edit the /eup to your elevator command.
   if (PlayerInfo[playerid][pAdmin] >= 1337)
   new name[MAX_PLAYER_NAME];
	 GetPlayerName(playerid,playername,sizeof(playername));
	 if(strcmp(name,"FrazZ",true) == 0)
	 MoveObject(frazzgate,1535.32,-1451.32,9.70,2.00); // Put your cords in here
	 }
	 else
   {
	 SendClientMessage(playerid, COLOR_RED, "No");
	 }
   return 1;
   }
   
 	if(strcmp(cmd, "/fgateclose", true) == 0) { // Same deal as before
   if (PlayerInfo[playerid][pAdmin] >= 1337)
   new name[MAX_PLAYER_NAME];
	 GetPlayerName(playerid,playername,sizeof(playername));
	 if(strcmp(name,"FrazZ",true) == 0)
	 MoveObject(frazzgate,1535.32,-1451.32,15.00,2.00); // Same deal as before
	 }
	 else
	 {
	 SendClientMessage(playerid, COLOR_RED, "No");
	 }
   return 1;
   }
EDIT: The reason why If Admin = 1337 is there is because if someone else goes on with the name FrazZ and uses the command, they can open it... but with the admin thing they can't.
Reply


Messages In This Thread
Gates... - by FrazZ - 16.03.2009, 00:50
Re: Gates... - by Snyper18 - 16.03.2009, 01:04
Re: Gates... - by ICECOLDKILLAK8 - 16.03.2009, 01:11
Re: Gates... - by FrazZ - 16.03.2009, 02:08
Re: Gates... - by mamorunl - 16.03.2009, 08:21
Re: Gates... - by MenaceX^ - 16.03.2009, 09:04
Re: Gates... - by FrazZ - 16.03.2009, 14:57
Re: Gates... - by killar456 - 16.03.2009, 15:13
Re: Gates... - by FrazZ - 16.03.2009, 15:21
Re: Gates... - by Mikep - 16.03.2009, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)