08.10.2010, 19:30
alguem me ajuda meu cmd nao funfa
Код:
if(strcmp(cmd, "/Demitirsub", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "/Demitir [ID/NICK]"); return 1; } new para1; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pMembro] > 0 && PlayerInfo[playerid][pCargo] >= 5) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMembro] == PlayerInfo[playerid][pLider]) { if (PlayerInfo[para1][pMembro] > 0) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* Voce foi demitido pelo lнder %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); SendClientMessage(para1, COLOR_LIGHTBLUE, "* Agora voce й um civil novamente."); gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; PlayerInfo[para1][pMembro] = 0; PlayerInfo[para1][pCargo] = 0; PlayerInfo[para1][pChar] = 0; new rand = random(sizeof(CIV)); SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[para1][pModel] = CIV[rand]; MedicBill[para1] = 0; SpawnPlayer(para1); format(string, sizeof(string), "Voce demitiu %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } if(PlayerInfo[para1][pMembro] != PlayerInfo[playerid][pLider]) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nгo pode promover quem naum e da sua org."); return 1; } } } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo й um lнder ou nгo pode demitir player de outra Org/Gang!"); } } return 1; }