Jump to content
  • 0

Ajutor Micut![SOLVED]


Roach

Question

Acum ca am ajutat pe cineva ma simt inplinit si am si eu nevoie de ajutor! =))

Deci am sa zicem comanda /ddz:

    if(!strcmp(cmd, "/ddz",true) == 0)
	{
	    BlockCommand[playerid]=1;
	    ResetPlayerWeapons(playerid);
  		new RandomSpawn = random(5);
		SendTeleport(playerid,"/ddz");

Si dupa sunt Random Spawn-urile dar pe mine daca mor in timpul duelului ma Respawneaza in postul normal(ls, sf etc.)

Cum fac ca sa ma respawneze tot in /ddz si sa pot iesi doar cu /exitDM?


*stuntman For The Win, 4 Ever!

142sj0l.png

Underground-GFX

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Nu ar trebui sa creezi un : new RandomSpawns[x][3] = { }; ?

Intre acolade sa pui toate coordonatele pt randomspawn.

Exemplu :

new Float:RandomSpawns[4][3] = {
{2458.0073,-2079.2607,13.5469},
{2802.9756,968.1823,10.7500},
{2367.6270,2754.8928,10.5280},
{1637.4083,2340.4880,10.0303}
};
Dupa care mergi la OnPlayerSpawn si faci :
if(BlockCommand[playerid] == 1)
{
      new rand = random(sizeof(RandomSpawns));
      SetPlayerPos(playerid, RandomSpawns[rand][0],RandomSpawns[rand][1],RandomSpawns[rand][2]);
}

Daca te-am informat gresit , sorry.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.