Advertisement
Hustrine

PlayerSay

Dec 2nd, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. stock PlayerSay( playerid, textas[] )
  2. {
  3. new zinute[ 126 ], vardas[ MAX_PLAYER_NAME ];
  4. GetPlayerName( playerid, vardas, MAX_PLAYER_NAME );
  5. format( zinute, 126, "{B0AEAE}%s: {B0AEAE}%s", vardas, textas );
  6. new Float:Poz[ 3 ];
  7. foreach(Player,i)
  8. {
  9. GetPlayerPos( i, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] );
  10. if( IsPlayerInRangeOfPoint( playerid, 17.0, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] ) )
  11. SendClientMessage( i, -1, zinute );
  12. }
  13. return 1;
  14. }
  15.  
  16. //Naudojimas: simuliuoti žaidėjo kalbą
  17. //Pvz: PlayerSay( playerid, "Ech.. Neturiu tiek pinigų..." );
  18. //Chat'e atvaizduos: Žaidėjas:Ech.. Neturiu tiek pinigų...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement