Skripta koju koristim: Wild Wild West OWAA (Moj GameMode od nule)
Detaljan opis problema: Trebam komandu (npr. /gotoxyz ) da kad netko upise
"/gotoxyz 2457.731689,-1054.671875,59.959186"
Da ga teleportira do koordinata "2457.731689,-1054.671875,59.959186"
Dio skripte: /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
Mozete li pomoc?
[POMOC] /gotoxyz Komanda !
1,380
pregleda
7
postova
3. Maj 2011.
Made Man
Novi Član
90 / 100 XP
🌱Početnik(0)
452
Postovi:
155
Teme:
Pridružio se:Maj 2010
3. Maj 2011.
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
3. Maj 2011.
Ravens editaj ako ti pase
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
3. Maj 2011.
♪♪Kruno1407ッ wrote on May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄
Fala skinio sam idem pogledat
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
3. Maj 2011.
Quote from May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄
Fala skinio sam idem pogledat
Evo nemoras trazit
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
3. Maj 2011.
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
Ako imas slucajno raven's-ov GM na kompu potrazi komandu "/xgoto"..ja sad nemogu nac..nemam raven 😄
Fala skinio sam idem pogledat
Evo nemoras trazit
$--L84S--$ wrote on May 3, 2011, 5:27 pm:
dcmd_xgoto(playerid, params[])
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
E JBG-a KAD ME JE*E DCMD....
Mozes li stavit u ono obicno:
if(strcmp(cmd, "/xgoto", true) == 0)
😕😕
3. Maj 2011.
if(strcmp(cmd, "/xgoto", true) == 0)
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
so hard? Btw. moras imati sscanf
{
if(PlayerInfo >= 5)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Korištenje: \"/xgoto
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SafeSetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}
so hard? Btw. moras imati sscanf
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava