19.02.2012, 18:23
Function:
Command:
PS: Is Case-Sensitive
pawn Код:
Name( playerid )
{
new s_p_N[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, s_p_N, sizeof s_p_N );
return( s_p_N );
}
pawn Код:
if(strcmp(cmd, "/boxevent", true) == 0)
{
if( !strcmp( Name( playerid ), "NAME", false ) )
{
if( boxevent == 0 )
{
boxevent = 1;
BroadCast( COLOR_WHITE, " write(/joinboxevent)!" );
}
else
{
boxevent = 0;
BroadCast( COLOR_GREEN, " deactive." );
}
}
return 1;
}