05.04.2010, 19:11
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (! strcmp ("/ sluiten", cmdtext)) { if (IsPlayerInRangeOfPoint (playerid, 7.0, 2354.3403320313, -650.77142333984, 127.85127258301)) { MoveObject (movingdoor1, 2354.3403320313, -650.77142333984, 127.85127258301, 1); SendClientMessage (playerid, 0xEF994300, "De poort is gesloten."); } return 1; } if (! strcmp ("/ open", cmdtext)) { if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353.693359375, -650.77709960938, +127.85127258301)) { MoveObject (movingdoor1 , 2353.693359375, -650.77709960938, 127.85127258301, 1); SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend."); } return 1; } return 0; }