Andr3y Posted March 17, 2011 Report Share Posted March 17, 2011 Am un mad si nu are comanda /exit ma poate ajuta cineva??? Link to comment Share on other sites More sharing options...
antonio112 Posted March 17, 2011 Report Share Posted March 17, 2011 Ce e ala 'mad' ? Ai putea incepe prin a ne da coordonatele si interiorul poate? Daca ai si virtual world. Link to comment Share on other sites More sharing options...
kenzor Posted March 17, 2011 Report Share Posted March 17, 2011 mad...cred ca vroia sa spuna mod .. :cheesy: Link to comment Share on other sites More sharing options...
Andr3y Posted March 17, 2011 Author Report Share Posted March 17, 2011 man ma grabeam sa plec la sc si am scris la repezeala ) Link to comment Share on other sites More sharing options...
BuBu Posted March 17, 2011 Report Share Posted March 17, 2011 Comanda "/exit" este exact ca cea de la "/enter" doar putin modificata te rog sa incerci si tu singuri sa faci ceva ! Link to comment Share on other sites More sharing options...
NeKeRm@N Posted March 17, 2011 Report Share Posted March 17, 2011 Poftim if(strcmp(cmdtext, "/exit", true) == 0) { { if PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093) *then { SetPlayerPos(playerid,773.579956,-77.096694,1000.655029); SetPlayerInterior(playerid,7); SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!"); return 1; } } }si in loc de coordonatele alea pui coordonatele tale Link to comment Share on other sites More sharing options...
antonio112 Posted March 17, 2011 Report Share Posted March 17, 2011 Eu ti`as recomanda sa folosesti si && GetPlayerInterior ... pentru a fii sigur ca nu apar ceva probleme.In caz ca ai si virtual world, ai putea si ala sa`l bagi: Spre exemplu:Editez postul lui NeKeRm@N pentru ca nu mai am chef sa fac altu.[pawn]if(strcmp(cmdtext, "/exit", true) == 0) { { if( PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093 && GetPlayerInterior == X && GetPlayerVirtualWorld == Y ) *then { SetPlayerPos(playerid,773.579956,-77.096694,1000.655029); SetPlayerInterior(playerid,7); SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!"); return 1; } } }[/pawn]Unde, X si Y sunt INTERIORUL si VIRTUALWORLD`ul cladirii din care iesi. Link to comment Share on other sites More sharing options...
Guest PlayON Posted March 17, 2011 Report Share Posted March 17, 2011 Ce-i cu *then acolo ?... Link to comment Share on other sites More sharing options...
CrystyaN Posted March 17, 2011 Report Share Posted March 17, 2011 Eu ti`as recomanda sa folosesti si && GetPlayerInterior ... pentru a fii sigur ca nu apar ceva probleme.In caz ca ai si virtual world, ai putea si ala sa`l bagi: Spre exemplu:Editez postul lui NeKeRm@N pentru ca nu mai am chef sa fac altu.[pawn]if(strcmp(cmdtext, "/exit", true) == 0) { { if( PlayerToPoint(5,playerid,2152.2021,-1014.2098,62.8093 && GetPlayerInterior == X && GetPlayerVirtualWorld == Y ) *then { SetPlayerPos(playerid,773.579956,-77.096694,1000.655029); SetPlayerInterior(playerid,7); SendClientMessage(playerid,COLOR_1GREEN,"* Bun venit la sala! Aici iti poti imbunatatii puterea!"); return 1; } } }[/pawn]Unde, X si Y sunt INTERIORUL si VIRTUALWORLD`ul cladirii din care iesi.Poate cand da enter nu are "SetPlayerVirtual... etc" asa ca nare de ce sa puna " GetPlayerV...." if(strcmp(cmdtext, "/exit", true) == 0) { if (PlayerToPoint(5, playerid, 227.1062,125.7774,1003.1243)) // coordonatele de unde vrei sa dai /exit! { SetPlayerPos(playerid, 258.4353,90.5100,1002.4453); // uunde sa te spawneze dupa ce ai dat /exit SetPlayerInterior(playerid, 6); // interiorul cladiri sau ce ai tu.. daca nu ai interior pune " 0" format(string, sizeof(string), "~w~Inside the ~w~LSPD"); // mesajul care vrei sa-l primesti cand dai /exit ... GameTextForPlayer(playerid, string, 1000, 1); // face parte de la mesaj return 1; } } Link to comment Share on other sites More sharing options...
antonio112 Posted March 18, 2011 Report Share Posted March 18, 2011 Ce-i cu *then acolo ?...Sincer? Habar n`am .. eu doar am editat postul =)ps: CrystyaN am specificat clar... daca are virtual world si interior. Link to comment Share on other sites More sharing options...
IstuntmanI Posted March 18, 2011 Report Share Posted March 18, 2011 Probleme godfather: http://www.sa-mp.ro/forum/index.php/topic,5356.0.html Link to comment Share on other sites More sharing options...
Question
Andr3y
Am un mad si nu are comanda /exit ma poate ajuta cineva???
Link to comment
Share on other sites
10 answers to this question
Recommended Posts