09.05.2012, 00:22
Hey guys,
I've got this command:
If I try to PM an offline players, it will tell me that the player is not connected, however, certain ID's (to be more specific ID 5) even if online, will also report the player is not connected.
How can I prevent this to happen?
I've got this command:
pawn Код:
CMD:pm( playerid, params[] )
{
if( PlayerInfo[playerid][Muted] == 1) return ShowErrorMessage( playerid, "You are muted and can't speak." );
new sendTo, pmText[128];
if ( sscanf( params, "us[128]", sendTo, pmText ) )
return ShowSyntaxMessage( playerid, "/pm [playerid] [message]" );
if ( !IsPlayerConnected( sendTo ) )
return ShowErrorMessage( playerid, "That player is not connected." );
if ( IsPlayerNPC ( sendTo ) )
return ShowErrorMessage( playerid, "You can't do this to NPC players." );
How can I prevent this to happen?