How to script this.
#10

Something like this I guess?

pawn Код:
public OnPlayerConnect(playerid)
{  
    //New string variable for join message:
    new szJoinMessage[128];
   
    //New string variable for player name:
    new szPlayerName[24];
   
    //Get the player's name:
    GetPlayerName( playerid, szPlayerName, sizeof szPlayerName );
   
    //Format it into dest string, the join message:
    format( szJoinMessage, sizeof szJoinMessage, "{FFFFFF}%s has joined MGRP.", szPlayerName );
   
    //Send formatted string to all players.
    SendClientMessageToAll( -1, szJoinMessage );
    return 1;
}
Compiles fine.

Reply


Messages In This Thread
How to script this. - by Eljayar - 26.02.2012, 08:13
Re: How to script this. - by BigD - 26.02.2012, 08:22
Re: How to script this. - by BMUK - 26.02.2012, 08:24
Re: How to script this. - by Eljayar - 26.02.2012, 08:25
Re: How to script this. - by BigD - 26.02.2012, 08:27
Re: How to script this. - by Eljayar - 26.02.2012, 08:31
Re: How to script this. - by BigD - 26.02.2012, 08:33
Re: How to script this. - by Eljayar - 26.02.2012, 08:37
Re: How to script this. - by BigD - 26.02.2012, 08:39
Re: How to script this. - by blewert - 26.02.2012, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)