30.05.2011, 16:47
Hi.
In my server, once tested the code, the door will not open.
What's wrong?
Thanks.
In my server, once tested the code, the door will not open.
What's wrong?
Thanks.
Код:
public OnPlayerUpdate(playerid) { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof pname); if(strcmp(pname, "Lo_Spericolato", true) ==0) { if(IsPlayerInRangeOfPoint(playerid, 20.0, -1087.8724365234, -315.17031860352, 14.500469207764)) MoveObject(hangarsfair, -1087.4228515625, -321.4111328125, 14.500469207764, 1.0); } else if(strcmp(pname, "Lo_Spericolato", true) ==0) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -1109.4988,-311.5401,10.7528)) MoveObject(hangarsfair, -1087.8724365234, -315.17031860352, 14.500469207764, 1.0); } return 1; }