Jump to content

Recommended Posts

Posted

Salut, folosesc si eu server mapping pentru proiecte, insa GM-ul nu prezinta nici o comanda de teleport sau flymode pentru caracter. Ma poate ajuta cineva cu urmatoarele comenzi:

 

/gotomall - spawn CNN LS

/gotosm - Spawn LSPD

/gotosm - Spawn pe parcarea din Santa Maria

si /flymode ON / OFF.

 

Merci

Posted

Cum sa faci comanda de fly:

 

 

#include <fly>
 
new Flymode[MAX_PLAYERS];
 
CMD:flymode(playerid, params[]) {
   if(IsPlayerAdmin(playerid)) {
       if(Flymode[playerid] == 0) { 
           InitFly(playerid);
           StartFly(playerid);
           Flymode[playerid] = 1;
       }
       else { StopFly(playerid), Flymode[playerid] = 0; }
   }
   return 1;
}

 

Eu ti-am dat doar un exemplu de flymode, comenzile de teleport le poti face si singur.

Posted (edited)
CMD:Comanda(playerid, params[]) {

if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);

if(GetPlayerState(playerid) == 2) SetVehiclePosEx(playerid, GetPlayerVehicleID(playerid), Cordonatele tale);

else SetPlayerPosEx(playerid,  CordonateleTale);

SetPlayerInterior(playerid,0);

InHQ[playerid] = -1;

InHouse[playerid] = -1;

InBussines[playerid] = -1;

SetPlayerVirtualWorld(playerid,0);

return 1;

}

 

Bafta in caz de orice erroare imi dai pm

Edited by ImDanyJrr
Posted (edited)

CMD:teleport(playerid, params[]) {
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_GREY, "nu esti admin");
SetPlayerPosEx(playerid, aici pui coordonatele unde vrei sa te teleporteze);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SCM(playerid, COLOR_GREY, "te-ai teleportat cu succes");
return 1;
}
Edited by CosminAK47.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

moduri samp