Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText ( playerid, text [] ) {
- new fString [ 256 ];
- if ( strlen ( fString ) > 144) {
- return false;
- }
- format ( fString, sizeof ( fString ),
- "%s says: %s", GetName (playerid), text );
- SendNearbyMessage ( playerid, 0xffffffAA, fString, 5.0 );
- return false;
- }
- SendNearbyMessage ( playerid, color, string [ 256 ], Float: radius ) {
- new Float: pX, Float: pY, Float: pZ;
- GetPlayerPos ( playerid, pX, pY, pZ );
- foreach(new i: Player) {
- if ( IsPlayerInRangeOfPoint ( i, radius, pX, pY, pZ ) ) {
- SendSplitMessage ( i, color, string );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement