[pomoc] War (nisi ovlasten)

Započeo _HarDy_
30. Jul 2012.
396
pregleda
2
postova
_HarDy_
5
Underboss
30. Jul 2012.
Skripta koju koristim : CLRP edit
Detaljan opis problema : Vako , ubacio sam war prema onome od docka , i sada sam ubacio u gm posto mi nece ocitati kao fs , i sada sam ja admin 1338 i kucam /war pise da nisam ovlasten koristiti tu komandu , evo vam u skritpti
Dio skripte:

CMD:war(playerid,params[])
{
if(!Admin(playerid, 2)) return SEM
new id, tim;
if(sscanf(params,"ui",id,tim)) return SendClientMessage(playerid, COLOR_GREY, "*Koristi: /war [id igraca] [tim (0-2)]");
else if(id == INVALID_PLAYER_ID) return ID_INVALID
WarTim = tim;
if(WarTim == 0) { SetPlayerColor(playerid, 0xffffffff); }
else if(WarTim == 1) { SetPlayerColor(playerid, 0xff0000aa); }
else if(WarTim == 2) { SetPlayerColor(playerid, 0x0000ffaa); }
new str;
new ime; GetPlayerName(playerid,ime,sizeof(ime));
new igrac; GetPlayerName(id,igrac,sizeof(igrac));
format(str,256," War | Prozvani ste na war od admina %s!", ime);
SendClientMessage(id, COLOR_LB, str);
format(str,256," War | Prozvali ste igraca %s na war!", igrac);
SendClientMessage(playerid, COLOR_LB, str);
return 1;
}


Ako jos nesto trebadne recite , stvarno mi treba pomoc , i kod mene u CLRPu nisu tako komande , evo jedna komanda iz CLRPa pa ako mi netko moze prebaciti ovu tako isto

CMD:levelkuce(playerid, params[])
{
    new money, id, string[ 128 ];
    if( sscanf( params, "dd", id, money) ) {
        if( PlayerInfo >= 5 ) {
            SendClientMessage( playerid, WHITE, "SYNTAX: /levelkuce " );
        }
    }
    else {
        if( PlayerInfo >= 5) {
            format( string, sizeof( string ), "Houses/House_%d.ini", id);
            if(!fexist( string) ) {
                SendClientMessage( playerid, WHITE, "Invalid house ID!" );
                return 1;
            }
            else {
                Houses = money;
                format(string, sizeof(string), "  Level kuce (ID:%d) postavljen na %d .", id, money);
                SendClientMessage(playerid, COLOR_GRAD1, string);
                SaveHouse(id);
                OnPropTextdrawUpdate(1,id);
            }
        }
    }
    return 1;
}


I vidite tu je " if( PlayerInfo >= 5) " I JA SAM SADA prebacio u to ali opet isto "NISTE OVLASTENI" :S
Hitno pomoc!!!
Johnâ„¢
5
Godfather
30. Jul 2012.
Stavi ovako i trebalo bi radit:

CMD:war(playerid,params[])
{
if(PlayerInfo < 5) return SEM
new id, tim;
if(sscanf(params,"ui",id,tim)) return SendClientMessage(playerid, COLOR_GREY, "*Koristi: /war [id igraca] [tim (0-2)]");
else if(id == INVALID_PLAYER_ID) return ID_INVALID
WarTim = tim;
if(WarTim == 0) { SetPlayerColor(playerid, 0xffffffff); }
else if(WarTim == 1) { SetPlayerColor(playerid, 0xff0000aa); }
else if(WarTim == 2) { SetPlayerColor(playerid, 0x0000ffaa); }
new str;
new ime; GetPlayerName(playerid,ime,sizeof(ime));
new igrac; GetPlayerName(id,igrac,sizeof(igrac));
format(str,256," War | Prozvani ste na war od admina %s!", ime);
SendClientMessage(id, COLOR_LB, str);
format(str,256," War | Prozvali ste igraca %s na war!", igrac);
SendClientMessage(playerid, COLOR_LB, str);
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha