BTomas 0 Odesláno: 31. Březen, 2016 Share Odesláno: 31. Březen, 2016 Zdravim, vse jede v poradku, ale kdyz pujdu na server tak mam tam register ( chat ) v modu .. ale potrebuju dokud se hrac neprihlasi/ neregistruje tak aby se nemohl spawnout... Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 1. Duben, 2016 Share Odesláno: 1. Duben, 2016 http://wiki.sa-mp.com/wiki/OnPlayerSpawn Return Values: Returning 0 in this callback will force the player back to class selection when they next spawn. Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 2. Duben, 2016 Author Share Odesláno: 2. Duben, 2016 Nejak jsem to nepochopil.. Potrebuju kod a k tomu nejake vysvetleni abych si to zapamatoval Potřebuju to do modu, tak mi pomozte. Link to comment Share on other sites More sharing options...
0 vladasavel 26 Odesláno: 2. Duben, 2016 Share Odesláno: 2. Duben, 2016 podmínka pokud není přihlášený/registrovaný{TogglePlayerSpectating(playerid,1);}else//pokud jse přihlásil/registroval{TogglePlayerSpectating(playerid,0);} Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 2. Duben, 2016 Share Odesláno: 2. Duben, 2016 Nejak jsem to nepochopil.. Potrebuju kod a k tomu nejake vysvetleni abych si to zapamatoval Potřebuju to do modu, tak mi pomozte. public OnPlayerSpawn(...) { if (!register) return (0); return (1) } Link to comment Share on other sites More sharing options...
0 Tomas99 0 Odesláno: 2. Duben, 2016 Share Odesláno: 2. Duben, 2016 Vysvětlení asi jedině jak máš "if (!register) return (0); Tak to vlastně blokuje fukci se spawnout bez registrovaní Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 2. Duben, 2016 Author Share Odesláno: 2. Duben, 2016 Diky za kod, + vysvetlivku. Link to comment Share on other sites More sharing options...
Dotaz
BTomas 0
Zdravim, vse jede v poradku, ale kdyz pujdu na server tak mam tam register ( chat ) v modu .. ale potrebuju dokud se hrac neprihlasi/ neregistruje tak aby se nemohl spawnout...
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts