Jump to content

cmd:spawnhere functionabila


Rmix
 Share

Recommended Posts

Si eu am incercat sa o fac odata dar mi-a fost lene, trebuie sa faci un timer.

Acum am vazut, comanda nici nu e facuta de tine, e a mea, doar ai pus-o in alt pastebin =]]]] http://forum.bugged.ro/topic/208234-ajutor-comanda-spawnhere/

Nu am spus ca este facuta de mine, am spus ca am incercat sa fac comanda spawnhere sa functioneze si nu am reusit.

Link to comment
Share on other sites

Fa un timer de o secunda in care setezi sa il dea unde era, SpawnPlayer actioneaza putin mai tarziu decat SetPlayerPoss si prima data se efectueaza SetPlayerPos dupa SpawnPlayer.

 

Apropo, nu prea te ajuta comanda, daca e ceva mai simplu dai un slap sau un respawn  + gethere, mie unul mi se pare ca e in plus.

Edited by Stuber
Link to comment
Share on other sites

E chiar usor sa faci comanda. Te folosesti de 1 variabila de ex: new PrimesteSpawn[MAX_PLAYERS];, de GetPlayerPos si SetPlayerPos. La comanda /spawnhere folosesti variabila PrimesteSpawn[id] = 1; si folosesti GetPlayerPos iar la onplayerspawn verifici daca variabila e activa PrimesteSpawn[player id] = 1; si folosesti SetPlayerPos si resetezi variabila PrimesteSpawn. Mai mult contribui tu.

Edited by Zephyr.
Link to comment
Share on other sites

Daca nu intelegi ce am scris, nu te baga.

Frate uite ce are el in comanda: ( unde se executa conditiile pe playerul ales, eu vad ca are si ce ai zis tu sa puna poate tu vezi altceva, idk )

	
	                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
	
	
	                        GetPlayerName(playerid, sendername, sizeof(sendername));
	
	
	                        new Float:spx, Float:spy, Float:spz;
	
	
	                        GetPlayerPos(id, spx, spy, spz);
	
	
	                        SpawnPlayer(id);
	
	
	                        format(string, sizeof(string), "%s spawned and restored your position.", sendername);
	
	
	                        SendClientMessage(id, -1, string);
	
	
	                        SetPlayerPos(id, spx, spy, spz);
	
	
	                        format(string, sizeof(string), "/spawnhere: %s spawned and restored %s position", sendername, giveplayer);
	
	
	                        ABroadCast(COLOR_ADMCOMMANDS,string,1);
	
	
	                        HLChat(COLOR_ADMCOMMANDS,string);
	
	
	                        return 1;
	

Edited by Stuber
Link to comment
Share on other sites

 

Frate uite ce are el in comanda: ( unde se executa conditiile pe playerul ales, eu vad ca are si ce ai zis tu sa puna poate tu vezi altceva, idk )

	
	                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
	
	
	                        GetPlayerName(playerid, sendername, sizeof(sendername));
	
	
	                        new Float:spx, Float:spy, Float:spz;
	
	
	                        GetPlayerPos(id, spx, spy, spz);
	
	
	                        SpawnPlayer(id);
	
	
	                        format(string, sizeof(string), "%s spawned and restored your position.", sendername);
	
	
	                        SendClientMessage(id, -1, string);
	
	
	                        SetPlayerPos(id, spx, spy, spz);
	
	
	                        format(string, sizeof(string), "/spawnhere: %s spawned and restored %s position", sendername, giveplayer);
	
	
	                        ABroadCast(COLOR_ADMCOMMANDS,string,1);
	
	
	                        HLChat(COLOR_ADMCOMMANDS,string);
	
	
	                        return 1;
	

Cum sa-l da la pozitie daca il spawneaza? Trebuie activat mai mult la spawn. Am zis in raspunsul meu cum se face.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

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