[Pomoc] Komanda /prison

Započeo Chuck:), Jul 03, 2011, 21:08:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Onaj neki Street Stories (edit)
Detaljan opis problema: ne radi /prison a head sam
Dio skripte: dolje:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //




if(strcmp(cmd, "/prison",true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
       if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pGameSage] >= 4)
       {
           SendClientMessage(playerid, COLOR_GREY, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu! !");
           return 1;
       }
      tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /prison [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
   if(IsPlayerConnected(giveplayerid))
   {
       if(giveplayerid != INVALID_PLAYER_ID)
       {
           GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Smestili ste %s u Fort DeMorgan.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Ubaceni ste u najozloglaseniji zatvor od Admina/GameSagea %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
GameTextForPlayer(giveplayerid, "~w~Dobrodosli u ~n~~r~Fort DeMorgan", 5000, 3);
WantedPoints[giveplayerid] = 0;
WantedLevel[giveplayerid] = 0;
PlayerInfo[giveplayerid][pJailed] = 2;
PlayerInfo[giveplayerid][pJailTime] = 3600;
           SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
       }
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Igrac je Offline !");
   return 1;
}
   }
   return 1;
}


U čemu je problem? :S
Poslednja Izmena: Jul 03, 2011, 21:33:17 POSLE PODNE od pHon

if(strcmp(cmd, "/prison",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 2 || !IsPlayerAdmin(playerid) || PlayerInfo[playerid][pGameSage] < 4)
        {
            SendClientMessage(playerid, COLOR_GREY, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu! !");
            return 1;
        }
         tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /prison [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Smestili ste %s u Fort DeMorgan.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Ubaceni ste u najozloglaseniji zatvor od Admina/GameSagea %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
GameTextForPlayer(giveplayerid, "~w~Dobrodosli u ~n~~r~Fort DeMorgan", 5000, 3);
WantedPoints[giveplayerid] = 0;
WantedLevel[giveplayerid] = 0;
PlayerInfo[giveplayerid][pJailed] = 2;
PlayerInfo[giveplayerid][pJailTime] = 3600;
            SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
        }
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Igrac je Offline !");
    return 1;
}
    }
    return 1;
}


eto, valjda ce raditi...
Just one more time.

Citat: pHon poslato Jul 03, 2011, 21:08:24 POSLE PODNE
Ovako,Head admin sam i ne mogu koristiti /prison


if(strcmp(cmd, "/prison",true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
       if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pGameSage] >= 4)
       {
           SendClientMessage(playerid, COLOR_GREY, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu! !");
           return 1;
       }
      tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /prison [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
   if(IsPlayerConnected(giveplayerid))
   {
       if(giveplayerid != INVALID_PLAYER_ID)
       {
           GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Smestili ste %s u Fort DeMorgan.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Ubaceni ste u najozloglaseniji zatvor od Admina/GameSagea %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
GameTextForPlayer(giveplayerid, "~w~Dobrodosli u ~n~~r~Fort DeMorgan", 5000, 3);
WantedPoints[giveplayerid] = 0;
WantedLevel[giveplayerid] = 0;
PlayerInfo[giveplayerid][pJailed] = 2;
PlayerInfo[giveplayerid][pJailTime] = 3600;
           SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
       }
}
else
{
   SendClientMessage(playerid, COLOR_GREY, "   Igrac je Offline !");
   return 1;
}
   }
   return 1;
}


U čemu je problem? :S

U buduce,prije postanja procitaj pravila...
Poslednja Izmena: Jul 03, 2011, 21:19:12 POSLE PODNE od Darko a.k.a OptX
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

@Pacino,hvala probat ću.   

@Darko a.k.a OptX, molim te se nemoj pravit pametan,da znaš ovo odgovorio bi,a postao si ovo samo kako bi skupio post, nisi ti neki moderator/smod/admin koji bi mi to trebao reći. Odlepršaj






EDIT: opet isto :/
Poslednja Izmena: Jul 03, 2011, 21:28:38 POSLE PODNE od pHon

Ok videcemo sta moderator kaze...Ali pravila kazu da se ne sme odgovarati na post ako nije dobro postan,a onaj je vec odgovorio.Tako su i meni svi radili dok je meni trebala pomoc,dok jednom nisam procitao pravila...
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

if(PlayerInfo[playerid][pAdmin] < 2 && !IsPlayerAdmin(playerid) && PlayerInfo[playerid][pGameSage] < 4) return SendClientMessage(playerid, COLOR_GREY, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu! !");

Citat: Darko a.k.a OptX poslato Jul 03, 2011, 21:32:00 POSLE PODNE
Ok videcemo sta moderator kaze...Ali pravila kazu da se ne sme odgovarati na post ako nije dobro postan,a onaj je vec odgovorio.Tako su i meni svi radili dok je meni trebala pomoc,dok jednom nisam procitao pravila...

eto Å¡efe,samo za tebe ;)

Citat
if(PlayerInfo[playerid][pAdmin] < 2 && !IsPlayerAdmin(playerid) && PlayerInfo[playerid][pGameSage] < 4) return SendClientMessage(playerid, COLOR_GREY, "   [ODBIJENO] Niste autorizovani da bi ste Koristiteli ovu komandu! !");



radi,hvala,kako da namjestim da se postavi timer na koliko da ga adm stavi?
Poslednja Izmena: Jul 03, 2011, 21:37:35 POSLE PODNE od pHon