15.04.2011, 08:49
(
Последний раз редактировалось Jake__; 15.04.2011 в 09:24.
)
Код:
forward timer(); CMD:stopfly(playerid, params[]) { #pragma unused params SetTimer("timer",5000,false); // Allow enough time for the player to fall very close to the ground if(!(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not an RCON admin."); } return 1; } public timer(); { SendClientMessage(playerid, yourcolor, "You've stopped flying."); SetPlayerHealth(playerid, 100); // SetGravity(integer); }
Please note: Edit the gravity to work with the timer, if possible.