12.08.2011, 16:28
By default, if you stand on the ground and press enter, it will automatically remove it (GTA SA Default).
But here is an untested command to remove it:
But here is an untested command to remove it:
pawn Код:
if(strcmp(cmdtext,"/rjetpack",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1338)
{
if(isnull(cmdtext))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
SendClientMessage(playerid, COLOR_GREY, "* Removed Jetpack From Yourself. You Can Also Do /rjetpack [id].");
}
else
{
new id, string[128], aname[24], pname[24];
id = strval(cmdtext);
if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR, "USAGE: /rjetpack [id] - Enter A Valid Player ID.");
GetPlayerName(playerid,aname,24); // admin name
GetPlayerName(id,pname,24); // player name
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
format(string,128,"You Have Removed %s (%d)'s Jetpack.",pname,id); SendClientMessage(playerid, COLOR, string);
format(string,128,"Administrator %s (%d) Has Removed Your Jetpack.",aname,playerid); SendClientMessage(id, COLOR, string);
return 1;
}
} else return SendClientMessage(playerid, 0xAA0000AA, "You Have To Be A Level 1338 Admin To Use This!");
}