10.07.2011, 01:34
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new pName[MAX_PLAYER_NAME], str[128]; //Overused cells
GetPlayerName(playerid, pName, sizeof(pName));
if (strcmp("/welcome", cmdtext, true, 10) == 0) //twinki
{
format(str, 128, "Welcome %s!", pName); //Welcome Twinki
SendClientMessage(playerid, 0xFFFFFFAA, str);
return 1;
}