skyte 0 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 Zdravím potřeboval bych pomoct přidat příkaz /hide /unhide který vám zajistí skrytí na mapě... Do vlastního modu bych to potřeboval! Díky za pomoc Link to comment Share on other sites More sharing options...
0 Polisek Polismanovic 76 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 Podle mě by mělo stačit SetPlayerColor(playerid,0x000000FF);// Na skrytí Barva Černá Ale kdyby ne přečti si toto: http://wiki.sa-mp.com/wiki/SetPlayerMarkerForPlayer Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 Podle mě by mělo stačit SetPlayerColor(playerid,0x000000FF);// Na skrytí Barva Černá Ale kdyby ne přečti si toto: http://wiki.sa-mp.com/wiki/SetPlayerMarkerForPlayer 0x000000FF to FF je ale nepruhledna barva. na konci musi bejt 00 aby to bylo pruhledny a tim neviditelny... http://wiki.sa-mp.com/wiki/Colors_List se koukni na Alpha values Link to comment Share on other sites More sharing options...
0 skyte 0 Odesláno: 12. Listopad, 2014 Author Share Odesláno: 12. Listopad, 2014 Nefunguje napíše mi někdo přesnej kod ? Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 a co ti konkretne nefunguje? ukaz svuj kod a treba ti nekdo poradi Link to comment Share on other sites More sharing options...
0 skyte 0 Odesláno: 12. Listopad, 2014 Author Share Odesláno: 12. Listopad, 2014 No asi to celé dělám špatně jsem začátečník v pawnu mohl by mi někdo napsat kod? Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 tak ukaz jak si to udelal a ja ti rad poradim Link to comment Share on other sites More sharing options...
0 skyte 0 Odesláno: 12. Listopad, 2014 Author Share Odesláno: 12. Listopad, 2014 public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/hide", cmdtext, true, 10) == 0) { // Do something here SetPlayerColor(playerid,0xRRGGBB00);// return 1; } return 0; } Říkám vůbec nevím co a jak Link to comment Share on other sites More sharing options...
0 Valtys 2 Odesláno: 12. Listopad, 2014 Share Odesláno: 12. Listopad, 2014 já mám uděláno SetPlayerColor(playerid,0xFF0000); a to funguje Link to comment Share on other sites More sharing options...
0 skyte 0 Odesláno: 12. Listopad, 2014 Author Share Odesláno: 12. Listopad, 2014 Valtys a co máš v includech? Atd? Link to comment Share on other sites More sharing options...
0 Valtys 2 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 nějak nerozumim tvojí otázceNapíšu ti sem kodnahoru si dej new invisible[MAX_PLAYERS]; do OnPlayerConnect invisible[playerid]=0; dcmd_hide(playerid, params[]) { #pragma unused params if(invisible[playerid]==0) // pokud nemá zaplou neviditelnost { SetPlayerColor(playerid,0xFF0000); SendClientMessage(playerid,COLOR_GOLD,"[ ] Schoval jsi se na mapě !"); invisible[playerid]=1; } else { SetPlayerColor(playerid,0xFF2222); //tu barvu si změn SendClientMessage(playerid,COLOR_GOLD,"[ ] Odkryl jsi se na mapě !"); invisible[playerid]=0; } return 1; } předělat si to na to strcmp snad zvládneš Link to comment Share on other sites More sharing options...
0 ATomas 290 Odesláno: 16. Listopad, 2014 Share Odesláno: 16. Listopad, 2014 Kdyz nevis tak nerad to cos mu poradil mu nick skryje vzdycky if(strcmp(cmdtext,"/hide",true) == 0) { SetPlayerColor(playerid,0xFFFFFF00); return 1; } if(strcmp(cmdtext,"/unhide",true) == 0) { SetPlayerColor(playerid,0xFFFFFFFF); return 1; } Link to comment Share on other sites More sharing options...
Dotaz
skyte 0
Zdravím potřeboval bych pomoct přidat příkaz /hide /unhide který vám zajistí skrytí na mapě... Do vlastního modu bych to potřeboval! Díky za pomoc
Link to comment
Share on other sites
11 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now