[POMOC]Radim Svoju Prvu Filter Skriptu

Započeo Tommy., Septembar 06, 2010, 18:43:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Znaci Ovako delam svoju filter skriptu i kada je na njom mod poput LVDM a tj Cisti Ona radi bez beda ali kada je stavim na GF mod onda kada upisem bilo koju komadnu javi "Niste admin" i izvrsi je!Ali kada idem napraviti komandu koja je u FS samo javi Niste admin i neizvrsi je. Pa sada do cega je mozda je do Return komandi pa ako neko moze pomoci evo vam komande:

if(strcmp(cmd, "/rccjoinporto", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerConnected(i))
    {
Connectzarace[i] = 1;
SendClientMessageToAll(COLOR_FINISH, "   Port za RCC Race Je otvoren kucajte /Rccjoin ! !");
}
else
{
    SendClientMessage(playerid,COLOR_ZELENA, " Niste Rcon Admin " );
}
}
}
if(strcmp(cmd, "/rccjoinportc", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerConnected(i))
    {
Connectzarace[i] = 0;
SendClientMessageToAll(COLOR_FINISH, "   Port za RCC Race Je Zatvoren ! !");
}
else
{
    SendClientMessage(playerid,COLOR_ZELENA, " Niste Rcon Admin " );
}
}
}

if(strcmp(cmd, "/rccjoin", true) == 0)
{
if(Connectzarace[playerid] == 1)
{
PutPlayerInVehicle(playerid, remontcontrol, 0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
}
else if(IsPlayerInVehicle(playerid, remontcontrol))
{
PutPlayerInVehicle(playerid, remontcontro2, 0);
TogglePlayerControllable(playerid, 0);
            SetPlayerInterior(playerid,0);
            CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro2))
{
PutPlayerInVehicle(playerid, remontcontro3, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro3))
{
PutPlayerInVehicle(playerid, remontcontro4, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro4))
{
PutPlayerInVehicle(playerid, remontcontro5, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
  else if(IsPlayerInVehicle(playerid, remontcontro5))
{
PutPlayerInVehicle(playerid, remontcontro6, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
    else if(IsPlayerInVehicle(playerid, remontcontro6))
{
PutPlayerInVehicle(playerid, remontcontro7, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro7))
{
PutPlayerInVehicle(playerid, remontcontro8, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro8))
{
PutPlayerInVehicle(playerid, remontcontro9, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro9))
{
PutPlayerInVehicle(playerid, remontcontro10, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro11))
{
PutPlayerInVehicle(playerid, remontcontro11, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro11))
{
PutPlayerInVehicle(playerid, remontcontro12, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
else if(IsPlayerInVehicle(playerid, remontcontro12))
{
PutPlayerInVehicle(playerid, remontcontro13, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
CP[playerid] = 987;
SetPlayerCheckpoint(playerid, 2760.5630,2686.2197,9.9389,10.0);
SendClientMessage(playerid,COLOR_ZELENA,"Portani ste na event biti ce te freezani dok race nepocne(/rccstart)");
}
}
if(strcmp(cmd, "/rccstart", true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            SendClientMessageToAll(COLOR_ZELENA,"Race Pocinje za 10 Sekundi Budite Spremni!!");
            SetTimer("kreceza10",10000,0);
}
}
else
{
  SendClientMessage(playerid,COLOR_ZELENA,"Niste Admin");
}
}
}

if (PlayerInfo[playerid][pAdmin] >= 3)

Sad nisam siguran..pocetnik sam u skriptanju..tj. ucim se  /umjesto 3 stavi neki lvl admina/

Edit: To ti fali!

Poslednja Izmena: Septembar 06, 2010, 19:57:45 POSLE PODNE od Kruno1407

KRIVO!

Nemoze staviti pAdmin u FS jer u FS-u nije definiran.... Jedino ako cjelu fs stavis u mod.... +Odgovor, ispred else si falio jednu  } a na kraju te komande jednu tu obrisi.


Citat: BloodMaster(Viky) poslato Septembar 06, 2010, 20:06:55 POSLE PODNE
KRIVO!

Nemoze staviti pAdmin u FS jer u FS-u nije definiran.... Jedino ako cjelu fs stavis u mod.... +Odgovor, ispred else si falio jednu  } a na kraju te komande jednu tu obrisi.

Ispred kojega else xd ;D