Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock PrendiNome(Player)
- {
- new Nome[24];
- GetPlayerName(Player, Nome, sizeof(Nome));
- strreplace(Nome, '_', ' ');
- return Nome;
- }
- stock PrendiNome(playerid)
- {
- new Nome[24];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- strreplace(Nome, '_', ' ');
- return Nome;
- }
- stock strreplace(string[], find, replace)
- {
- for(new i=0; string[i]; i++)
- {
- if(string[i] == find)
- {
- string[i] = replace;
- }
- }
- }
- stock ClearChat(playerid, times) //Pulisce la chat al giocatore
- {
- for(new j=0; j<times; j++)
- {
- SendClientMessage(playerid, -1, "");
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new messaggio[128];
- format(messaggio, sizeof(messaggio), "[IC]%s dice: %s", PrendiNome(playerid), text);
- ProxDetector(30.0, playerid, messaggio, -1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement