14.04.2011, 19:36
I downloaded YSF and I want some little help. I made a /fly command:
And I think this should work. Now, for the /stopfly, I want that the player who is flying will be slowly putted down so his HP will be not lost. Can you help me?!
pawn Код:
CMD:fly(playerid, params[]) {
#pragma unused params
if(IsPlayerAdmin(playerid)) {
SetPlayerGravity(playerid, 0);
}
else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You have no acces to this command");
return 1;
}