Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock PlayerSay( playerid, textas[] )
- {
- new zinute[ 126 ], vardas[ MAX_PLAYER_NAME ];
- GetPlayerName( playerid, vardas, MAX_PLAYER_NAME );
- format( zinute, 126, "{B0AEAE}%s: {B0AEAE}%s", vardas, textas );
- new Float:Poz[ 3 ];
- foreach(Player,i)
- {
- GetPlayerPos( i, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] );
- if( IsPlayerInRangeOfPoint( playerid, 17.0, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] ) )
- SendClientMessage( i, -1, zinute );
- }
- return 1;
- }
- //Naudojimas: simuliuoti žaidėjo kalbą
- //Pvz: PlayerSay( playerid, "Ech.. Neturiu tiek pinigų..." );
- //Chat'e atvaizduos: Žaidėjas:Ech.. Neturiu tiek pinigų...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement