11.08.2014, 23:11
PHP код:
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/ap15", true)) {
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1991.5396, -1727.6708, 4.6313)) {
MoveObject(ID15, 1991.5396, -1727.6708, 4.6313, 3, 0.0000, 0.0000, -90.2999);
SetTimer("MoveID15", 5000, 0);
SendClientMessage(playerid, 0x2641FEFF, "Portao aberto");
}
return 1;
}
return 0;
}