Skripta koju koristim: Markos mod o 0
Detaljan opis problema: Ubacio sam komandu xgoto u skriptu,i complaj sam mod i kada odem na server kucam /xgoto ono nece.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[Pomoc] Oko komande.
208
pregleda
8
postova
7. Okt. 2014.
CMD:xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, GROVE, "Koriscenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Portao si se do kordinata %f, %f, %f", x, y, z);
SendClientMessage(playerid, GROVE, string);
}
}
return 1;
}
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, GROVE, "Koriscenje: \"/xgoto
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Portao si se do kordinata %f, %f, %f", x, y, z);
SendClientMessage(playerid, GROVE, string);
}
}
return 1;
}
7. Okt. 2014.
Izvoli
CMD:xgoto(playerid, params[])
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) return SendClientMessage(playerid, -1, "Koriscenje: \"/xgoto \"");
if(IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Portao si se do kordinata %f, %f, %f", x, y, z);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid,-1,"Nisi Admin lvl 5");
}
return 1;
}
7. Okt. 2014.
CMD:xgoto(playerid, params[])
{
if(PlayerInfo < 5) return SendClientMessage(playerid,GROVE," Nisi ovlascen!");
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, GROVE, "Koriscenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Portao si se do kordinata %f, %f, %f", x, y, z);
SendClientMessage(playerid, GROVE, string);
}
return 1;
} Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava