[pomoc]Neradi komanda -.-.-.-.-.-.-.-.-.-.-

Započeo MreR, Mart 17, 2013, 15:37:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo ovako,znaci neradi mi komanda makeleader,nema errora u gamemodeu,meÄ'utim kad uÄ'em na server,pise mi

Postavio si za lidera LSPD,nedoÄ'e igraču da sam ga postavio za lidera i nenalazi se pod /lideri,te nedobije lidera

evo iz pawna komanda :

ko pomogne nagradu dobije


COMMAND:makeleader(playerid,params[])
{
   new id,level,otext[50],ime[MAX_PLAYER_NAME],ime2[MAX_PLAYER_NAME],string[128];
    if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, COLOR_WHITE, "Nisi Admin");
   if (sscanf(params, "ui", id, level)) SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /makeleader [ID] [1-11]");
   else if(id == IPI) return SendClientMessage(playerid, COLOR_WHITE, "{636363}sClient: {FFFFFF}Taj igrac nije na serveru.");
    if(level > 11 || level < 0) return SCM(playerid,COLOR_GRAD4,"[Greska]: Minimalno 0 i maximalno 11.");
    if(level == 0) { PlayerInfo[id][pChar] = 17; otext = "nista"; PlayerInfo[id][pTeam] = 0;}
   else if(level == 1) { PlayerInfo[id][pChar] = 288; otext = "LS-PD"; }
   else if(level == 2) { PlayerInfo[id][pChar] = 286; otext = "FBI";}
   else if(level == 3) { PlayerInfo[id][pChar] = 287; otext = "National Gurad";}
   else if(level == 4) { PlayerInfo[id][pChar] = 122; otext = "Salvatores"; }
   else if(level == 5) { PlayerInfo[id][pChar] = 113; otext = "Nuestra Familia"; }
   else if(level == 6) { PlayerInfo[id][pChar] = 120; otext = "Yakuza"; }
   else if(level == 7) { PlayerInfo[id][pChar] = 147; otext = "Gradonacelnik"; }
   else if(level == 8) { PlayerInfo[id][pChar] = 294; otext = "Hitman"; }
   else if(level == 9) { PlayerInfo[id][pChar] = 227; otext = "Novinar"; }
   else if(level == 10){ PlayerInfo[id][pChar] = 61;  otext = "Taxi Club"; }
   else if(level == 11){ PlayerInfo[id][pChar] = 106; otext = "Grove Street"; }
   PlayerInfo[id][pLeader] = level;
   PlayerInfo[id][pMember] = level;
   PlayerInfo[id][pRank] = 6;
   GetPlayerName(playerid, ime, sizeof(ime));
   GetPlayerName(id, ime2, sizeof(ime2));
   format(string, sizeof string,"Postavljen si da vodis %s | Od strane admina: %s",otext,ime);
   SCM(id,COLOR_Text,string);
   format(string, sizeof string,"Postavio si %s da vodi %s",ime2,otext);
   SCM(playerid,COLOR_Text,string);
   gTeam[id] = 10;
    PlayerInfo[id][pTeam] = 10;
    SetPlayerSkin(id, PlayerInfo[id][pChar]);
   return 1;
}

SOFTSTAR DEATHMATCH POSJETITE NAS : 178.238.229.126:7971