1.
dcmd(xgoto,5,cmdtext); ovo ubacite ispod OnPlayerCommandPerformed ili OnPlayerCommandText u zavisnosti od moda
2.
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 1340)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Vi ste postavili na koordinate %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
} A ovo ubacite na kraj skripte i radice bez problema ...
Ako nemate definisano SafeSetPlayerPos evo i toga :
Ubacite forward na vrhu skripte
forward SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z);I ovaj public
public SafeSetPlayerPos(playerid, Float:x, Float:y, Float:z)
{
SetPlayerPos(playerid, x,y,z);
Streamer_UpdateEx(playerid,x,y,z);
return 1;
}I naravno promenite pAdmin kod mene je 1340 pa je takav primer ovde ...
Nadam se da sam pomogao pocetnicima .
