30.07.2011, 20:06
Why don't you just use the "GetPlayerID( const playername[ ], partofname = 0 )" native?
Part of name is also toggleable...
https://sampwiki.blast.hk/wiki/GetPlayerID
So I do:
Part of name is also toggleable...
https://sampwiki.blast.hk/wiki/GetPlayerID
So I do:
pawn Код:
CMD:sendmeanamessage( playerid, params[ ] ) {
new meanid = GetPlayerID( "Mean" );
if( meanid == -1 )
return SendClientMessage( playerid, -1, "Mean is not connected! " );
SendClientMessage( meanid, -1, "You got a message! " );
return 1;
}