09.01.2013, 03:37
Talking Animation, put this code in OnPlayerText
To remove the _
Paste this stock out of a callback
Then in OnPlayerText again
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
ApplyAnimation(playerid, "MISC", "Idle_Chat_02", 4.1, 0, 1, 1, 1, 1);
}
Paste this stock out of a callback
pawn Код:
stock strreplace(string[], find, replace)
{
for(new i=0; string[i]; i++)
{
if(string[i] == find)
{
string[i] = replace;
}
}
}
pawn Код:
new name[24];
GetPlayerName(playerid, name, sizeof(name));
strreplace(name, '_', ' ');