Pentru comanda (/leaders):
Adauga
SendClientMessage(playerid, COLOR_WHITE, "{ADFF5C}|____ Leaders Online: ____|");
Inainte de `foreach(Player, i).
Iar pentru (/sellcar), value = floatround((CarInfo[vsid][cValue] * 7) / 10); nu coincide cu: value = CarPriceValid(CarInfo[vsid][cModel]) / 2;
dcmd_gotopoint(playerid, params[])
{
if(PlayerData[playerid][pAdmin] < 5) return 1;
new Float:X, Float:Y, Float:Z;
if(!sscanf(params, "fff", X, Y, Z))
{
SetPlayerPos(playerid, X, Y, Z);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, -1, "You have been teleported!");
return 1;
}
else
{
SendClientMessage(playerid, -1, "USAGE: /Gotopoint [X] [Y] [Z]");
SendClientMessage(playerid, -1, "Teleports you to a point in world space.");
}
return 1;
}
incearca asta. Nu uita sa modifici variabilele.