02.05.2015, 19:58
(
Последний раз редактировалось Toxik; 02.05.2015 в 20:24.
Причина: Forgot codes
)
hey guys .. well im a puree noob
How can i make the gate open when Player> "[Cro]Mexi69" get close them ?
ANYONE ?
How can i make the gate open when Player> "[Cro]Mexi69" get close them ?
pawn Код:
#include <a_samp>
new Mexi69;
public OnGameModeInit()
{
Mexi69 = CreateObject(976, );
SetTimer("Mexi", 1000, 1);
}
forward Mexi();
public Mexi()
{
new open;
for(new i=GetMaxPlayers(); i > -1; i--)
{
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 2.0, , , ))
{
open = 1;
MoveObject(Mexi69, 318.5770, -1190.4686, 75.4311, 2.0);
break;
}
}
if(!open)
MoveObject(Mexi69, , , , 2.0);
}