02.05.2015, 23:36
pawn Код:
new gatepid, timer;
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
if(!strcmp(pName,"[Cro]Mexi69")
{
gatepid=playerid;
timer = SetTimer("Mexi", 1000, 1);
}
}
forward Mexi();
public Mexi()
{
if(!IsPlayerConnected(gatepid))
{
KillTimer(timer);
return 0;
}
if(IsPlayerInRangeOfPoint(i, 2.0, , , ))
MoveObject(Mexi69, 318.5770, -1190.4686, 75.4311, 2.0);
}