Jump to content
  • 0

Problema CMD:sdm


horke1

Question

Deci cand dau /sdm

Ma teleporteaza :D

dar cand mor sa il omor :-?

Nu respawnea`za il spawnea`za la unde are clanu spawn :-??

iar cand nu ai clan il respawnea`za

Aveti ide :-?

In comanda /sdm este totul in ordine :-?

CMD:sdm(playerid, params[])
{
     new Float:RandomSpawn[3][4] =
     {
         {3794.8005,-1067.5277,25.3162},
         {3798.9282,-1025.8356,28.1341},
         {3763.5474,-1003.0386,41.1961}
     };
     new rand = random(sizeof(RandomSpawn));
     SetPlayerPos(playerid,RandomSpawn[rand][0],RandomSpawn[rand][1],RandomSpawn[rand][2]);
     SetPlayerFacingAngle(playerid,RandomSpawn[rand][3]);
	 ResetPlayerWeapons(playerid);
     SetPlayerHealth(playerid, 100);
     SetPlayerArmour(playerid, 0);
     GivePlayerWeapon(playerid, 34, 500);
     GivePlayerWeapon(playerid, 31, 500);
     GivePlayerWeapon(playerid, 23, 500);
     GivePlayerWeapon(playerid, 27, 500);
	 SetPVarInt(playerid, "PlayerInDM", 1);
	 SendTeleport(playerid, "Strike DM", "sdm");
     SendClientMessage(playerid, COLOR_ORANGE, "{15FF00}Welcome to {11FF00}Strike DM!");
     return 1;
}

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Massari asa trebuie!Citeste regulamentul,si te rog spune detaliat problema intalnita ca nu am inteles nimic.

Problema este ca atunci cand ai clan.

Si te duci la /sdm si vine unu si te omoara :| trebe sa te respawneze iara la /sdm dar nu ma spawneaza la spawn`u dela clan :|

Iar cand nu ai clan merge totu perfect

Link to comment
Share on other sites

asta bagi sus in GM.

new SecretDM[ MAX_PLAYERS ] ;

new Float: RS[ 3 ][ 3 ] =

{

        {3794.8005,-1067.5277,25.3162},

        {3798.9282,-1025.8356,28.1341},

        {3763.5474,-1003.0386,41.1961}

};


asta bagi la on player spawn

if ( SecretDM[ playerid]== 1 )
    return SetPlayerSDMSpawn( playerid );

asta bagi jos de tot in GM
forward SetPlayerSDMSpawn(playerid);
public SetPlayerSDMSpawn(playerid)
{
    new rand = random( sizeof( RS) );
    SetPlayerPos( playerid, RS[ rand ][ 0 ], RS[ rand ][ 1 ], RS[ rand ][ 2 ] );
	return 1;
}

asta e comanda, o bagi in loc la comanda ta actuala
CMD:sdm(playerid, params[])
{
     SecretDM[ playerid ] = 1;
     ResetPlayerWeapons(playerid);
     SetPlayerHealth(playerid, 100);
     SetPlayerArmour(playerid, 0);
     GivePlayerWeapon(playerid, 34, 500);
     GivePlayerWeapon(playerid, 31, 500);
     GivePlayerWeapon(playerid, 23, 500);
     GivePlayerWeapon(playerid, 27, 500);
     SetPVarInt(playerid, "PlayerInDM", 1);
     SendTeleport(playerid, "Strike DM", "sdm");
     SendClientMessage(playerid, COLOR_ORANGE, "{15FF00}Welcome to {11FF00}Strike DM!");
     return 1;
}


7bdea99b11.png

rimmon curv.

Link to comment
Share on other sites

asta bagi sus in GM.

new SecretDM[ MAX_PLAYERS ] ;

new Float: RS[ 3 ][ 3 ] =

{

        {3794.8005,-1067.5277,25.3162},

        {3798.9282,-1025.8356,28.1341},

        {3763.5474,-1003.0386,41.1961}

};


asta bagi la on player spawn

if ( SecretDM[ playerid]== 1 )
    return SetPlayerSDMSpawn( playerid );

asta bagi jos de tot in GM
forward SetPlayerSDMSpawn(playerid);
public SetPlayerSDMSpawn(playerid)
{
    new rand = random( sizeof( RS) );
    SetPlayerPos( playerid, RS[ rand ][ 0 ], RS[ rand ][ 1 ], RS[ rand ][ 2 ] );
	return 1;
}

asta e comanda, o bagi in loc la comanda ta actuala
CMD:sdm(playerid, params[])
{
     SecretDM[ playerid ] = 1;
     ResetPlayerWeapons(playerid);
     SetPlayerHealth(playerid, 100);
     SetPlayerArmour(playerid, 0);
     GivePlayerWeapon(playerid, 34, 500);
     GivePlayerWeapon(playerid, 31, 500);
     GivePlayerWeapon(playerid, 23, 500);
     GivePlayerWeapon(playerid, 27, 500);
     SetPVarInt(playerid, "PlayerInDM", 1);
     SendTeleport(playerid, "Strike DM", "sdm");
     SendClientMessage(playerid, COLOR_ORANGE, "{15FF00}Welcome to {11FF00}Strike DM!");
     return 1;
}


Ce sa mai spun te pupa Jan :*+1

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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. For more details you can also review our Terms of Use and Privacy Policy.