/gateopen PD only
#2

PHP код:
public OnGameModeInit()
{
new 
Gate;
public 
OnFilterScriptInit()
{
Gate CreateObject(9681540.13, -1611.0812.940.088.4290.00100.0);
return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
if(!
strcmp(cmdtext"/gateopen"true)){
if(
PlayerInfo[playerid][PD] == 1) return SendClientMessage(playerid, -1"You need to be PD");
if(
IsPlayerInRangeOfPoint(playerid15.01540.13, -1611.0812.94)){
SetTimerEx("CloseGate"7000false"i"playerid);
MoveObject(Gate1540.13, -1611.0812.943.00.00.090.00);
return 
1;
}
}
return 
0;

Reply


Messages In This Thread
/gateopen PD only - by Andrei0427 - 28.12.2012, 16:11
Re: /gateopen PD only - by Magic_Time - 28.12.2012, 16:18
Re: /gateopen PD only - by Andrei0427 - 28.12.2012, 16:27
Re: /gateopen PD only - by Diorturato - 28.12.2012, 16:30

Forum Jump:


Users browsing this thread: 2 Guest(s)