25.09.2011, 15:53
Hello, I am kinda new in the Pawno scripting. And, I would like to know how do I script the variable of the name of the players that gets connected/disconnected.
new pname[24], string[64];//Creating the variable!
GetPlayerName(playerid,pname,sizeof(pname));//Getting the player's name!
format(string,sizeof(string),"%s (%i) has just connected!",pname,playerid);//Using the variable in a message!
SendClientMessageToAll(-1,string);//Sending the formatted message above ^ to everyone!
(%i)
// ???
Daniel Carrey (0) has just connected.