[POMOC]Oko cmd

Započeo Marcony.amx, Maj 19, 2014, 20:41:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Neki edit
Detaljan opis problema: Ubacio sam cmd stit za PD i stvori al kad pisem da ga maknem nece se makntui
Dio skripte:

/////////////////////////////////
CMD:stavistit(playerid, params[])
{
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BjustAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(PolicajacNaDuznosti[playerid] == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
    SetPlayerAttachedObject(playerid, 3, 18637, 13, 0.35, 0.0,  0.0,  0.0,   0.0, 180.0);
    GivePlayerWeapon(playerid, 3, 1);
      return 1;
                 }
/////////////////////////////////////////////////
CMD:skinistit(playerid, params[])
{
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BjustAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(PolicajacNaDuznosti[playerid] == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
{
if( !IsPlayerAttachedObjectSlotUsed( playerid, 0  ) &&
    !IsPlayerAttachedObjectSlotUsed( playerid, 1  ) &&
    !IsPlayerAttachedObjectSlotUsed( playerid, 2  ) &&
    !IsPlayerAttachedObjectSlotUsed( playerid, 3  ) &&
    !IsPlayerAttachedObjectSlotUsed( playerid, 4  ) )


for ( new i = 0; i < 5; i ++ )
{
if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
{
RemovePlayerAttachedObject( playerid, i );
}
}
ResetPlayerWeapons( playerid );
   }
return 1;
}

CMD:skinistit(playerid, params[])
{
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BjustAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(PolicajacNaDuznosti[playerid] == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
}
ResetPlayerWeapons( playerid );
return 1;
}
69

Citat: [SF]C++ poslato Maj 19, 2014, 20:44:20 POSLE PODNE
CMD:skinistit(playerid, params[])
{
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BjustAS | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pClan] != 1 && PlayerInfo[playerid][pLider] != 1) return SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
if(PolicajacNaDuznosti[playerid] == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
}
ResetPlayerWeapons( playerid );
return 1;
}

Hvala radi moze lock