Jump to content
  • 0

pomoc /goto


renoo

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Umíš dcmd???

 

 

Jestli jo tak si udělej dcmd příkaz a do něj

 

dcmd_prikaz(playerid, params[])
{
new id = strval(params);
new x1,y1,z1;
new int;
GetPlayerPos(id, x1,y1,z1);
GetPlayerInterior(id, int);
SetPlayerPos(playerid, x1, y1, z1);
SetPlayerInterior(playerid, int);
}

Link to comment
Share on other sites

  • 0

dcmd umim diki :)

 

-- sob 24. dub 2010 19:57:10 --

 

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(163) : error 017: undefined symbol "params"

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(167) : warning 202: number of arguments does not match definition

 

:(

mam to udelany tahle

 

if(strfind(text,"/goto", true) != -1)

{

new id = strval(params);

new x1,y1,z1;

new int;

GetPlayerPos(id, x1,y1,z1);

GetPlayerInterior(id, int);

SetPlayerPos(playerid, x1, y1, z1);

SetPlayerInterior(playerid, int);

H[playerid] = 1;

PlayerPlaySound(playerid,1083,x,y,z);

G(playerid);

return 0;

}

 

prosim pomoc

Link to comment
Share on other sites

  • 0
dcmd umim diki :)

 

-- sob 24. dub 2010 19:57:10 --

 

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(163) : error 017: undefined symbol "params"

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(166) : warning 213: tag mismatch

C:\Users\Agilis\Desktop\Programy\samp03asvr_R7_win32\Cheats.pwn(167) : warning 202: number of arguments does not match definition

 

:(

mam to udelany tahle

 

if(strfind(text,"/goto", true) != -1)

{

new id = strval(params);

new x1,y1,z1;

new int;

GetPlayerPos(id, x1,y1,z1);

GetPlayerInterior(id, int);

SetPlayerPos(playerid, x1, y1, z1);

SetPlayerInterior(playerid, int);

H[playerid] = 1;

PlayerPlaySound(playerid,1083,x,y,z);

G(playerid);

return 0;

}

 

prosim pomoc

toto neni dcmd :lol:

sprav to tak ako ti to napisal davidekpc, daj si to nakoniec do modu a do OnPlayerCommandText daj dcmd(prikaz,6,cmdtext)

Link to comment
Share on other sites

  • 0

dig...

if(strfind(text,"/goto", true) != -1)

{

new id = strval(params);

 

toto ma rozosmialo...

 

dcmd_prikaz(playerid, params[])

{

format(x,100,"%s",params);

return 1;

}

 

pre toto tu je params...

dcmd_goto(playerid, params[]){
if(!strlen(params)) return SendClientMessage(playerid, COLOR_CERVENA, "Použitie: /goto [iD]");
new CMD_ID = strval(params);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(CMD_ID, X, Y, Z);
new INT = GetPlayerInterior(CMD_ID);
SetPlayerInterior(playerid,INT);
if(GetPlayerState(playerid) == 2)
{
new AUTO = GetPlayerVehicleID(playerid);
SetVehiclePos(AUTO, X, Y+4, Z+0.5);
LinkVehicleToInterior(AUTO, INT);
for(new i=0;i{
if(IsPlayerConnected(i)) if(IsPlayerInVehicle(i, AUTO)) SetPlayerInterior(i, INT);
}
}else{
SetPlayerPos(playerid,X,Y+2, Z+0.5);
}
return 1;
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...