Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/otvori", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 14.0, 1637.78381, -1146.09814, 25.70830))
- {
- MoveObject(gate, 1637.78381, -1146.09814, 20.03730,3);
- return 1;
- }
- }
- if(strcmp(cmdtext,"/zatvori", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 14.0, 1637.78381, -1146.09814, 25.70830))
- {
- MoveObject(gate, 1637.78381, -1146.09814, 25.70830,3);
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment