onplayertext callback
#3

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
connected[playerid] == true)
    {
        
SendClientMessage(playerid, -"{c3c3c3}(INFO) You can't talk, you need to spawn first...");
        return 
0;
    }
    
    if(
Mute[playerid] == 1
    {
        
SendClientMessage(playerid, -1"{c3c3c3}(INFO) You're muted therefore you can't type anything.");
        return 
0;
    }
    
    new 
text2[128];
    
format(text2sizeof (text), "%s ( %d ) %s"PlayerName[playerid], playeridtext2);
    
SendPlayerMessageToAll(playeridtext);
    return 
0;

yeah
Reply


Messages In This Thread
onplayertext callback - by wallen - 28.02.2018, 13:54
Re: onplayertext callback - by jasperschellekens - 28.02.2018, 13:57
Re: onplayertext callback - by wallen - 28.02.2018, 14:05
Re: onplayertext callback - by RogueDrifter - 28.02.2018, 14:07
Re: onplayertext callback - by PepsiCola23 - 28.02.2018, 14:09
Re: onplayertext callback - by wallen - 28.02.2018, 14:40
Re: onplayertext callback - by RogueDrifter - 28.02.2018, 14:41

Forum Jump:


Users browsing this thread: 2 Guest(s)