27.02.2013, 19:08
Eu nгo testei nada. Mais usando a funзгo que criei fica dessa forma;
Um exemplo. Lembrando que pode ser feito A mesma tecnica com Defines !
Um exemplo. Lembrando que pode ser feito A mesma tecnica com Defines !
pawn Код:
By: SchocC Scripter
forward GetTotalOrg(playerid ,orgid );
enum e_dat
{
e_orgid
};
new pinfo[ 10 ][ e_dat ];
public GetTotalOrg( playerid, orgid )
{
for(new i; i != MAX_PLAYERS; ++i )
if( pinfo[ i ][ e_orgid ] == pinfo[ playerid ][ e_orgid ] )
{
return orgid ;
}
return false;
}
// Usando em OnPlayerCommandText
public OnPlayerCommandText( playerid, cmdtext[] )
{
if( GetTotalOrg( playerid, orgid ) >= TANDO_DE_PLAYERS )
{
//Cуdigos Se tal org tem tanto X de players
return true;
}
return 0;
}
// Usando em ZCMD
CMD:mandarorgpratdm( playerid )
{
if( GetTotalOrg( playerid, orgid ) >= TANDO_DE_PLAYERS )
{
//Codigos Se a org X tem tanto X de players
return true;
}
else {
//Caso nгo tenha X Players
}
return true;
}

