08.02.2010, 05:28
You can't use GetPlayerName in that way, nor can you use strings like that.
pawn Код:
if (strcmp("/afk", cmdtext, true, 10) == 0)
{
new string[ 64 ], Name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, Name, sizeof( Name ) );
format( string, sizeof( string ), "%s is AFK - They have been frozen to prevent being killed.", Name );
TogglePlayerControllable( playerid, false );
SendClientMessageToAll( COLOR_GREEN, string );
return 1;
}