Bună ziua dragilor, aş dori să mă ajutaţi şi pe mine într-o problemă.
As dori sa fac dupa modelul de mai jos o coamnda de tip /gotoxyz care sa afiseze catre admin (level 1) sytanxa de ''/gotoxyz [coordonate] [int] si tot incerc sa o fac si imi da erori, ma puteti ajuta?
template comanda.
if(strcmp(cmd, "/gotolv", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdministrator] >= 1)
{
if(GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
}
else
{
SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
}
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti comanda!");
}
}
return 1;
}