25.12.2011, 13:39
pawn Код:
CMD:up(playerid, params[])
{
new posup, Float:X, Float:Y, Float:Z;
if(sscaf(params, "d", posup)) return SendClientMessage(playerid, YOUR_COLOR, "Usage: /up [amount]");
else
{
GetPlayerPos(playerid, X, Y, Z);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid, X, Y, Z+posup);
SendClientMessage(playerid,COL_ADMIN,"** Moved up 50 feet.");
}
else
{
SetPlayerPos(playerid,X, Y, Z+50);
SendClientMessage(playerid,COL_ADMIN,"** Moved up 50 feet.");
}
return 1;
}
}