21.05.2011, 18:13
pawn Код:
CMD:chdoor(playerid, params[]){
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 2) {
if(IsPlayerInRangeOfPoint(playerid, 4.5, 371.9613,166.6872,1008.3828)) {
if(CHDoor == 0) {
MoveDynamicObject(CHDoor, 371.2587890625, 166.46171569824, 1007.3776245117, 3.5);
CHDoor = 1;
}
else {
MoveDynamicObject(CHDoor, 371.25970458984, 166.59274291992, 1007.3776245117, 3.5);
CHDoor = 0;
}
}
}
}