Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- new text2[256];
- new pnametext[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pnametext,MAX_PLAYER_NAME);
- if(text[0] == ';')
- {
- for(new i, p = GetMaxPlayers(); i < p; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- new Float:T,Float:V,Float:A;
- GetPlayerPos(playerid,T,V,A);
- if(!IsPlayerInRangeOfPoint(i, 20.0, T, V, A)) continue;
- strdel(text, 0, 1);
- format(text2, 256,"%s [ID:%d]: %s", pnametext, playerid, text);
- SendClientMessage(i, aclaro, text2);
- SetPlayerChatBubble(playerid,text, COLOR_WHITE, 20, 10000);
- PlayerPlaySound(playerid, 1057, T+20, V+20, A+20);
- }
- return false;
- }
- //UpperToLower(text);
- new string[256];
- format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
- SendPlayerMessageToAll(playerid,string);
- SetPlayerChatBubble(playerid,text, COLOR_WHITE, 100.0, 10000);
- return 0;
- }
Add Comment
Please, Sign In to add comment