CMD:fel(playerid, params[])
{
new
meter,
Float:x, Float:y, Float:z,
string[128];
if(sscanf(params, \"i\", meter)) return SendClientMessage(playerid, 0xf00e0eAA, \"Haszálat: /fel [méter]\");
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z+meter);
format(string, sizeof(string), \"Feldobtad magad %d méterre!\", meter);
SendClientMessage(playerid, 0xf00e0eAA, string);
return 1;
}
CMD:le(playerid, params[])
{
new
meter,
Float:x, Float:y, Float:z,
string[128];
if(sscanf(params, \"i\", meter)) return SendClientMessage(playerid, 0xf00e0eAA, \"Haszálat: /le [méter]\");
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z-meter);
format(string, sizeof(string), \"Ledobtad magad %d méterre!\", meter);
SendClientMessage(playerid, 0xf00e0eAA, string);
return 1;
}
Tessék, nem teszteltem!