Ghosts.Crack 0 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 Ahoj dělám si vlástní mód a chtěl bych se na něco zeptat.Když se třeba odwarpuji na /letistelv tak bych si přál aby se napsalo Hráč NĚKDO se odwarpoval na Letiště do LV ale nevím jak udělat aby to šlo.. Děkuji za odpovědi ) Link to comment Share on other sites More sharing options...
Michal Kuřátko (_Michael_) 49 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 Špatná sekce if (strcmp("/lestistelv", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, X,Y,Z); SendClientMessage(playerid, 0xFFFFFFFF,"Odwarpoval si se na letiště LV"); return 1; } Link to comment Share on other sites More sharing options...
Ghosts.Crack 0 Odesláno: 18. Leden, 2013 Author Share Odesláno: 18. Leden, 2013 Ale já chci aby se to napsalo uplně všem co jsou na serveru, hráč někdo se odwarpoval na letiste lv aby to videli vsichni Link to comment Share on other sites More sharing options...
Michal Kuřátko (_Michael_) 49 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 new string[100]; format(string,sizeof(string),"Hráč %s se odwarpoval na letiště LV!",PlayerName(playerid); SendClientMessageToAll(playerid, string); stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name,sizeof(name)); return name; } Btw. Jak tak koukám radši se na ten mod vy*er... Link to comment Share on other sites More sharing options...
Ghosts.Crack 0 Odesláno: 18. Leden, 2013 Author Share Odesláno: 18. Leden, 2013 Diky moc Vubec to nejde.. Poradi nekdo jinak ? Link to comment Share on other sites More sharing options...
Nikes 9 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 A co ti nejde přesně.. Link to comment Share on other sites More sharing options...
Ghosts.Crack 0 Odesláno: 18. Leden, 2013 Author Share Odesláno: 18. Leden, 2013 No moc nechápu jak to vložit, a aj tak když sem to udělal tak my to hodilo asi 11 erroru Link to comment Share on other sites More sharing options...
Nikes 9 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 A kam si to vložil? Link to comment Share on other sites More sharing options...
Ghosts.Crack 0 Odesláno: 18. Leden, 2013 Author Share Odesláno: 18. Leden, 2013 OnPlayerCommandText do toho if strcmp atd Link to comment Share on other sites More sharing options...
Nikes 9 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 Tak sem pošli celej ten public.. Jestli tam máš jen ten příkaz Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 pridal si ma na skype spravim ti to Link to comment Share on other sites More sharing options...
Rad012 23 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 do OnPlayerCommandText vlož: if (strcmp("/prikaz", cmdtext, true, 10) == 0) { new str[128]; format(str,128,"Hráč %s se odwarpoval !",PlayerName(playerid); SendClientMessageToAll(playerid, str); SetPlayerPos(playerid,x,y,z); // doplň súradnice return 1; } potom mimo všetky public vlož: stock PlayerName(playerid){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name,sizeof(name)); return name; } Link to comment Share on other sites More sharing options...
Recommended Posts