Tele Command?
#1

hello, how to make a teleport command but i need it with a some weapons and random tele
Exm: when i do /dm tele me to 4 diffrent places and with some weapons
Reply
#2

Quote:
Originally Posted by vikoo
Посмотреть сообщение
hello, how to make a teleport command but i need it with a some weapons and random tele
Exm: when i do /dm tele me to 4 diffrent places and with some weapons
give me some coordinates and weapons ids
Reply
#3

coordinates:
tele1: (299,-364.8762,-1806.4645,5.0472,85.9786,0,0,0,0,0,0); //
tele2: (299,-395.2691,-1769.2233,5.0488,217.1966,0,0,0,0,0,0); //
tele3: (299,-414.6810,-1829.5294,3.3588,171.4495,0,0,0,0,0,0); //
tele4: (299,-426.2597,-1909.1432,5.1604,200.5897,0,0,0,0,0,0); //

weapons ids:
(Grenade id:16)-(sniper id:34)-(AK47 id:30)-(M4 id:31)-(DEAGLE id:24)-(SHOTGUN id:25)-(SHOTGSPa id:27)-(SILENCED id:23)-(KNIFE id:4)
Reply
#4

Use a cmd processor like zcmd:

PHP код:
CMD:dm(playerid)
{
    static const 
Float:pos[][3] =
    {
        {-
364.8762,-1806.4645,5.0472},
        {-
395.2691,-1769.2233,5.0488},
        {-
414.6810,-1829.5294,3.3588},
        {-
426.2597,-1909.1432,5.1604}
    }, 
= {16,34,30,31,24,25,27,23,4};
    new 
random(sizeof(pos));
    
SetPlayerPos(playerid,pos[i][0],pos[i][1],pos[i][2]);
    for(
i=0i<sizeof(w); i++) GivePlayerWeapon(playerid,w[i],9999999);
    return 
1;

Reply
#5

oh thx bro for helping <3
Reply
#6

but i got that 5 errors when i compiled
Reply
#7

Kaliber ?
Reply
#8

Код:
CMD:dm(playerid) 
{ 
    static const Float:pos[][3] = 
    { 
        {-364.8762,-1806.4645,5.0472}, 
        {-395.2691,-1769.2233,5.0488}, 
        {-414.6810,-1829.5294,3.3588}, 
        {-426.2597,-1909.1432,5.1604} 
    };
w = {16,34,30,31,24,25,27,23,4}; 
    new i = random(sizeof(pos)); 
    SetPlayerPos(playerid,pos[i][0],pos[i][1],pos[i][2]); 
    for(i=0; i<sizeof(w); i++) GivePlayerWeapon(playerid,w[i],9999999); 
    return 1; 
}
Reply
#9

Sorry, forgot the [] just do this:

PHP код:
CMD:dm(playerid)
{
    static const 
Float:pos[][3] =
    {
        {-
364.8762,-1806.4645,5.0472},
        {-
395.2691,-1769.2233,5.0488},
        {-
414.6810,-1829.5294,3.3588},
        {-
426.2597,-1909.1432,5.1604}
    }, 
w[] = {16,34,30,31,24,25,27,23,4};
    new 
random(sizeof(pos));
    
SetPlayerPos(playerid,pos[i][0],pos[i][1],pos[i][2]);
    for(
i=0i<sizeof(w); i++) GivePlayerWeapon(playerid,w[i],9999999);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)