V01D wrote on August 24, 2020, 7:41 am:
Posalji komandu hport
Quote from August 24, 2020, 11:41 am:
posalji CMD:hport... Da vidimo do cega je problem!
CMD:hport( playerid, params[] ) {
if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xHelper ] >= 1 ) {
if( !AdminDuty[ playerid ] ) return GRESKA( playerid, "Da bi koristili ovu komandu morate biti Helper na duznosti." );
if( PlayerInfo[ playerid ][ xHelper ] >= 1 ) {
if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas opremu posla." );
if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
}
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
for( new i = 0; i < MAX_SPORTS; i++ ) {
if( helperInfo[ i ][ helperCreated ] == 1 ) {
format( DialogStrgEx, sizeof( DialogStrgEx ), "%s%s\n", DialogStrgEx, helperInfo[ i ][ helperName ] );
}
}
SPD( playerid, dialog_SELECTSPORT, DSL, D_NASLOV, DialogStrgEx, D_ODABERI, D_ODUSTANI );
}
else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
return true;
}