_Martin_ 10 Odesláno: 23. Červen, 2011 Share Odesláno: 23. Červen, 2011 Lamky si už zrejme zahrievajú C,V a Ctrl. ...Rovno sa priznám, že je zo forum.sa-mp.com . Nie je asi čo písať...má malú nevýhodu, že ak napíšete 'čau' a potom 'č' tak to berie ako spam a správu nepošle. public OnPlayerText(playerid, text[]) { static LastText[MAX_PLAYERS][128]; if(strfind(LastText[playerid], text, false) != -1) return SendClientMessage(playerid, 0xFFFF00, "Nespamuj!"), 0; //zisťuje či je nový text rovný starému ak áno pošle správu strmid(LastText[playerid], text, 0, strlen(text), sizeof(LastText[])); return 1; } Viem, že nie je popísané ale ja som ešte o static nepočul takže Nechcel som to dávať ani do módy zo forum.samp.com lebo 4 riadky je zbytočné... Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 23. Červen, 2011 Share Odesláno: 23. Červen, 2011 nema byt tut popsany? Link to comment Share on other sites More sharing options...
Guest Odesláno: 23. Červen, 2011 Share Odesláno: 23. Červen, 2011 [w]SetPVarString[/w] ti nič nehovorí ?! Link to comment Share on other sites More sharing options...
_Martin_ 10 Odesláno: 24. Červen, 2011 Author Share Odesláno: 24. Červen, 2011 Hovorí aj som to skúšal ale nešlo mi to ... ale keď som napísal text tak mi neposlalo správu nespamuj ale napísalo napr časť toho textu. napísal som 'čau' potom 'jj' ale neposlalo 'jj' ale 'ča' Link to comment Share on other sites More sharing options...
Guest Odesláno: 24. Červen, 2011 Share Odesláno: 24. Červen, 2011 ... Link to comment Share on other sites More sharing options...
Brunes 1 Odesláno: 24. Červen, 2011 Share Odesláno: 24. Červen, 2011 Good Martin ... toto je tušim aj na vg Link to comment Share on other sites More sharing options...
_Martin_ 10 Odesláno: 24. Červen, 2011 Author Share Odesláno: 24. Červen, 2011 Podobné Link to comment Share on other sites More sharing options...
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