Quote:
Originally Posted by oliverrud
pawn Код:
PublicOnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/opengates", cmdtext, true, 10) == 0) { if(PlayerAccount[playerid][Admin] >= 2) { MoveObject(gate1,-291.833282, 1507.330078, 76.069191,2.0); MoveObject(gate2,-312.522491, 1506.881470, 76.070045,2.0); return 1; } } if (strcmp("/closegates", cmdtext, true, 10) == 0) { if(PlayerAccount[playerid][Admin] >= 2) { MoveObject(gate1,-298.333282, 1507.330078, 76.069191,2.0); MoveObject(gate2,-306.222504, 1506.931519, 76.070045,2.0); return 1; } } return 0; }
Replace the PlayerAccount[playerid][Admin] with your account system
|
do that just change what he said but place the command to move object in what ever script you have just remember to #include what you need and #define to