GOLDEN_TIGER Дата: Среда, 03.11.2010, 11:47:38 | Сообщение # 1
Группа: Пользователи
Сообщений: 17
сам делал Инфор -
Code
if(strcmp(cmd, "/info", true) == 0) { if(IsPlayerAdmin(playerid)){ tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); new Float:zd, Float:br; new ip[32]; GetPlayerIp(giveplayerid, ip, 256); GetPlayerHealth(giveplayerid, zd); GetPlayerArmour(giveplayerid, br); GetPlayerName(giveplayerid, PlayerName, 30); new giveplayername[MAX_PLAYER_NAME]; new bullets[12]; new weapons[12]; new weapname[12][20]; for(new i = 0; i < 8; i++) { GetPlayerWeaponData(giveplayerid, i+1, weapons[i], bullets[i]); GetWeaponName(weapons[i], weapname[i], 20); } GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername)); format(str, 256, "________________________________________________\n"); strcat(string, str); format(str, 256, "Íèê: %s / ID: %d / IP: %s\n", PlayerName, giveplayerid, ip); strcat(string, str); format(str, sizeof(str), "Óðâåíü: %i\n",GetPlayerScore(playerid)); strcat(string, str); format(str, 256, "Çäîðîâüå: %.f HP / Áðîíÿ: %.f HP\n", zd, br); strcat(string, str); format(str, 256, "Íàëè÷íûå äåíüãè: %d $ \n", GetPlayerMoney(giveplayerid)); strcat(string, str); format(str, sizeof(str),"Îðóæèå: %s / %s(%d) / %s(%d) \n %s(%d) / %s(%d) / %s(%d) \n",weapname[0],weapname[1],bullets[1],weapname[2],bullets[2],weapname[3],bullets[3],weapname[4],bullets[4],weapname[5],bullets[5],weapname[6],bullets[6],weapname[7],bullets[7]); strcat(string, str); format(str, 256, "________________________________________________\n"); strcat(string, str); ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Ïðîñìîòð èíôîðìàöèè îá èãðîêå",string,"Îêåé","Çàêðûòü"); return 1; } else { SendClientMessage(playerid,0xFF0000AA," Âû íå èìååòå ïðàâà èñïîëüçîâàòü ýòó êîììàíäó"); } return 1; }
Небольшая система пвп
Code
if (strcmp("/pvp", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(TpMenu, playerid); return 1; } PvpMenu = CreateMenu("~w~pvp gun", 2, 200.0, 100.0, 150.0, 150.0); // PvpMenu = CreateMenu("Player", 1, 30.0, 150.0, 100.0, 140.0); // CreateMenu(title, columns, Float:x, Float:y, Float:col1width, Float:col2width); AddMenuItem(PvpMenu, 0, "One: Desert Eagle ~r~100"); AddMenuItem(PvpMenu, 0, "One: Shotgun ~r~100"); AddMenuItem(PvpMenu, 0, "One: m4 ~r~250"); AddMenuItem(PvpMenu, 0, "One: Knfe ~w~1"); AddMenuItem(PvpMenu, 0, "One: Sniper ~r~100"); AddMenuItem(PvpMenu, 0, "Pakc: Eagle ~r~100 + m4 ~r~200"); AddMenuItem(PvpMenu, 0, "Pack: Shotgun ~r~100 + mp5 ~r~300"); BuyMenu = CreateMenu("~w~fast buy weapons", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(BuyMenu, 0, "Desert Eagle ~r~100 ~w~2.000$"); AddMenuItem(BuyMenu, 0, "Shotgun ~r~100 ~w~5.000$"); AddMenuItem(BuyMenu, 0, "m4 ~r~200 ~w~6.000$"); AddMenuItem(BuyMenu, 0, "ak-47 ~r~200 ~w~40.00$"); AddMenuItem(BuyMenu, 0, "Vintovka ~r~50 ~w~40.000$"); AddMenuItem(BuyMenu, 0, "Sniper rife ~r~25 ~w~50.000$"); AddMenuItem(BuyMenu, 0, "Grenades ~r~5 ~w~20.000$"); AddMenuItem(BuyMenu, 0, "mp5 ~r~100 ~w~8.000$"); AddMenuItem(BuyMenu, 0, "Combat Sapz ~r~100 ~w~80.000$"); AddMenuItem(BuyMenu, 0, "Flowers ~r~1 ~w~0$"); AddMenuItem(BuyMenu, 0, "Katana ~r~1 ~w~0$"); AddMenuItem(BuyMenu, 0, "Dildo pink ~r~1 ~w~0$"); // AddMenuItem(BuyMenu, 0, "Heal ~g~+20 hp ~w~10.000$"); // AddMenuItem(BuyMenu, 0, "Armour ~g~+40 ~w~20.000$"); TpMenu = CreateMenu("~w~select pvp arena", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(TpMenu, 0, "Roof of Skyscraper ~w~easy"); AddMenuItem(TpMenu, 0, "Pirat Hotel ~r~HARD!"); AddMenuItem(TpMenu, 0, "Roof 4 Dragons ~b~normal"); AddMenuItem(TpMenu, 0, "Two little towers ~r~HARD!"); AddMenuItem(TpMenu, 0, "Castel up! ~b~normal"); AddMenuItem(TpMenu, 0, "Visag ~b~normal"); AddMenuItem(TpMenu, 0, "Dowland 150+ ~b~normal"); AddMenuItem(TpMenu, 0, "Big YXO ~r~HARD!"); AddMenuItem(TpMenu, 0, "Under Sky ~r~HARD"); AddMenuItem(TpMenu, 0, "TV-Set ~w~easy"); AddMenuItem(TpMenu, 0, "Kran SF ~r~HARD!"); AddMenuItem(TpMenu, 0, "Blue ground ~b~normal"); // AddMenuItem(TpMenu, 0, "The Pro lap ~b~normal"); // AddMenuItem(TpMenu, 0, "CW arena 2 ~w~easy");
Code
public OnPlayerSelectedMenuRow(playerid,row) { new Menu:Current = GetPlayerMenu(playerid); //new Float:heals; //new Float:heals1; // new Float:x, Float:y, Float:z, Float:a; // GetPlayerPos(playerid, x, y, z); // GetPlayerFacingAngle(playerid, a); if(Current == PvpMenu) { TogglePlayerControllable(playerid, 0); switch(row) { case 0: GivePlayerWeapon(playerid,24,100);//return 1; //cancel case 1: GivePlayerWeapon(playerid,25,100); case 2: GivePlayerWeapon(playerid,31,250);//FHouseBuy(playerid); //Buy case 3: GivePlayerWeapon(playerid,4,1);//FHouseSell(playerid); //Sell case 4: GivePlayerWeapon(playerid,34,100);//FHouseKeep(playerid); //Keeping case 5: {GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,31,200);}//{FHouseMyHouses(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(HouseMenu, playerid);} //My Houses case 6: {GivePlayerWeapon(playerid,25,100); GivePlayerWeapon(playerid,29,200);}//SetPlayerArmour(playerid,100.0);//{FHouseHouses(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(HouseMenu, playerid);} //Houses } } if(Current == BuyMenu) { TogglePlayerControllable(playerid, 1); switch(row) { case 0: {GivePlayerWeapon(playerid,24,100); GivePlayerMoney(playerid,-2000);} case 1: {GivePlayerWeapon(playerid,25,100); GivePlayerMoney(playerid,-5000);}//{FBisInfo(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Info case 2: {GivePlayerWeapon(playerid,31,200); GivePlayerMoney(playerid,-6000);} case 3: {GivePlayerWeapon(playerid,30,200); GivePlayerMoney(playerid,-4000);}//FBisSell(playerid); //Sell case 4: {GivePlayerWeapon(playerid,33,50); GivePlayerMoney(playerid,-40000);}//FBisCollect(playerid); //Collect case 5: {GivePlayerWeapon(playerid,34,25); GivePlayerMoney(playerid,-50000);}//{FBisMyBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //My Businesses case 6: {GivePlayerWeapon(playerid,16,5); GivePlayerMoney(playerid,-20000);}//{FBisBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Businesses case 7: {GivePlayerWeapon(playerid,29,100); GivePlayerMoney(playerid,-8000);} case 8: {GivePlayerWeapon(playerid,27,100); GivePlayerMoney(playerid,-80000);} case 9: {GivePlayerWeapon(playerid,14,1); GivePlayerMoney(playerid,0);} case 10: {GivePlayerWeapon(playerid,8,1); GivePlayerMoney(playerid,0);} case 11: {GivePlayerWeapon(playerid,10,1); GivePlayerMoney(playerid,0);} //case 12: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} //case 13: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} } } if(Current == TpMenu) { TogglePlayerControllable(playerid, 1); switch(row) { case 0: {SetPlayerPos(playerid,1458.0433,-1068.1302,213.3828); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 1: {SetPlayerPos(playerid,1916.7678,1628.2471,72.2578); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisInfo(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Info case 2: {SetPlayerPos(playerid,1983.8876,958.6110,52.7387); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 3: {SetPlayerPos(playerid,2108.6174,1002.4197,45.6641); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//FBisSell(playerid); //Sell case 4: {SetPlayerPos(playerid,2203.9304,1001.5223,85.9375); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//FBisCollect(playerid); //Collect case 5: {SetPlayerPos(playerid,1969.7570,1913.5195,130.9375); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisMyBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //My Businesses case 6: {SetPlayerPos(playerid,2050.7405,2435.2434,165.6172); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Businesses case 7: {SetPlayerPos(playerid,-349.4645,1600.3728,165.0887); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 8: {SetPlayerPos(playerid,-2670.9346,1934.2695,217.2739); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 9: {SetPlayerPos(playerid,-1756.2793,792.9324,167.6563); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 10: {SetPlayerPos(playerid,-2080.2571,243.2312,105.8890); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 12: {SetPlayerPos(playerid,-2790.1995,341.4630,26.9609); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 13: {SetPlayerPos(playerid,-2087.4412,-765.8367,66.8714); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 14: {SetPlayerPos(playerid,-56.2496,8.7306,3.1172); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} //case 15: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} } } TogglePlayerControllable(playerid, 1); return 1; }
команда админс
Code
if(strcomp(cmd, "/admins", true) == 1) { new string[MAX_STRING]; new idsa=0; SendClientMessage(playerid, COLOUR_WHITE, lang_texts[1][28]); for (new id = 0; id < MAX_PLAYERS; id++) { if ( IsPlayerConnected(id) && IsPlayerAdmin(id) ) { format(string, sizeof(string), "SERVER: RCON-Àäìèíèñòðàòîð: %s(%d)" , oGetPlayerName(id), id); SendClientMessage(playerid, COLOUR_LIGHTRED,string); idsa++; } } if (idsa==0) { SendClientMessage(playerid, COLOUR_GREY, "никого нету читри нормлаьно!" ); } //format(string,sizeof(string),oGetPlayerName(playerid),playerid); //SendClientMessageToRegistered(COLOUR_GREY, string); return 1; }
Сообщение сам делал Инфор -
Code
if(strcmp(cmd, "/info", true) == 0) { if(IsPlayerAdmin(playerid)){ tmp = strtok(cmdtext, idx); giveplayerid = strval(tmp); new Float:zd, Float:br; new ip[32]; GetPlayerIp(giveplayerid, ip, 256); GetPlayerHealth(giveplayerid, zd); GetPlayerArmour(giveplayerid, br); GetPlayerName(giveplayerid, PlayerName, 30); new giveplayername[MAX_PLAYER_NAME]; new bullets[12]; new weapons[12]; new weapname[12][20]; for(new i = 0; i < 8; i++) { GetPlayerWeaponData(giveplayerid, i+1, weapons[i], bullets[i]); GetWeaponName(weapons[i], weapname[i], 20); } GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername)); format(str, 256, "________________________________________________\n"); strcat(string, str); format(str, 256, "Íèê: %s / ID: %d / IP: %s\n", PlayerName, giveplayerid, ip); strcat(string, str); format(str, sizeof(str), "Óðâåíü: %i\n",GetPlayerScore(playerid)); strcat(string, str); format(str, 256, "Çäîðîâüå: %.f HP / Áðîíÿ: %.f HP\n", zd, br); strcat(string, str); format(str, 256, "Íàëè÷íûå äåíüãè: %d $ \n", GetPlayerMoney(giveplayerid)); strcat(string, str); format(str, sizeof(str),"Îðóæèå: %s / %s(%d) / %s(%d) \n %s(%d) / %s(%d) / %s(%d) \n",weapname[0],weapname[1],bullets[1],weapname[2],bullets[2],weapname[3],bullets[3],weapname[4],bullets[4],weapname[5],bullets[5],weapname[6],bullets[6],weapname[7],bullets[7]); strcat(string, str); format(str, 256, "________________________________________________\n"); strcat(string, str); ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Ïðîñìîòð èíôîðìàöèè îá èãðîêå",string,"Îêåé","Çàêðûòü"); return 1; } else { SendClientMessage(playerid,0xFF0000AA," Âû íå èìååòå ïðàâà èñïîëüçîâàòü ýòó êîììàíäó"); } return 1; }
Небольшая система пвп
Code
if (strcmp("/pvp", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(TpMenu, playerid); return 1; } PvpMenu = CreateMenu("~w~pvp gun", 2, 200.0, 100.0, 150.0, 150.0); // PvpMenu = CreateMenu("Player", 1, 30.0, 150.0, 100.0, 140.0); // CreateMenu(title, columns, Float:x, Float:y, Float:col1width, Float:col2width); AddMenuItem(PvpMenu, 0, "One: Desert Eagle ~r~100"); AddMenuItem(PvpMenu, 0, "One: Shotgun ~r~100"); AddMenuItem(PvpMenu, 0, "One: m4 ~r~250"); AddMenuItem(PvpMenu, 0, "One: Knfe ~w~1"); AddMenuItem(PvpMenu, 0, "One: Sniper ~r~100"); AddMenuItem(PvpMenu, 0, "Pakc: Eagle ~r~100 + m4 ~r~200"); AddMenuItem(PvpMenu, 0, "Pack: Shotgun ~r~100 + mp5 ~r~300"); BuyMenu = CreateMenu("~w~fast buy weapons", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(BuyMenu, 0, "Desert Eagle ~r~100 ~w~2.000$"); AddMenuItem(BuyMenu, 0, "Shotgun ~r~100 ~w~5.000$"); AddMenuItem(BuyMenu, 0, "m4 ~r~200 ~w~6.000$"); AddMenuItem(BuyMenu, 0, "ak-47 ~r~200 ~w~40.00$"); AddMenuItem(BuyMenu, 0, "Vintovka ~r~50 ~w~40.000$"); AddMenuItem(BuyMenu, 0, "Sniper rife ~r~25 ~w~50.000$"); AddMenuItem(BuyMenu, 0, "Grenades ~r~5 ~w~20.000$"); AddMenuItem(BuyMenu, 0, "mp5 ~r~100 ~w~8.000$"); AddMenuItem(BuyMenu, 0, "Combat Sapz ~r~100 ~w~80.000$"); AddMenuItem(BuyMenu, 0, "Flowers ~r~1 ~w~0$"); AddMenuItem(BuyMenu, 0, "Katana ~r~1 ~w~0$"); AddMenuItem(BuyMenu, 0, "Dildo pink ~r~1 ~w~0$"); // AddMenuItem(BuyMenu, 0, "Heal ~g~+20 hp ~w~10.000$"); // AddMenuItem(BuyMenu, 0, "Armour ~g~+40 ~w~20.000$"); TpMenu = CreateMenu("~w~select pvp arena", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(TpMenu, 0, "Roof of Skyscraper ~w~easy"); AddMenuItem(TpMenu, 0, "Pirat Hotel ~r~HARD!"); AddMenuItem(TpMenu, 0, "Roof 4 Dragons ~b~normal"); AddMenuItem(TpMenu, 0, "Two little towers ~r~HARD!"); AddMenuItem(TpMenu, 0, "Castel up! ~b~normal"); AddMenuItem(TpMenu, 0, "Visag ~b~normal"); AddMenuItem(TpMenu, 0, "Dowland 150+ ~b~normal"); AddMenuItem(TpMenu, 0, "Big YXO ~r~HARD!"); AddMenuItem(TpMenu, 0, "Under Sky ~r~HARD"); AddMenuItem(TpMenu, 0, "TV-Set ~w~easy"); AddMenuItem(TpMenu, 0, "Kran SF ~r~HARD!"); AddMenuItem(TpMenu, 0, "Blue ground ~b~normal"); // AddMenuItem(TpMenu, 0, "The Pro lap ~b~normal"); // AddMenuItem(TpMenu, 0, "CW arena 2 ~w~easy");
Code
public OnPlayerSelectedMenuRow(playerid,row) { new Menu:Current = GetPlayerMenu(playerid); //new Float:heals; //new Float:heals1; // new Float:x, Float:y, Float:z, Float:a; // GetPlayerPos(playerid, x, y, z); // GetPlayerFacingAngle(playerid, a); if(Current == PvpMenu) { TogglePlayerControllable(playerid, 0); switch(row) { case 0: GivePlayerWeapon(playerid,24,100);//return 1; //cancel case 1: GivePlayerWeapon(playerid,25,100); case 2: GivePlayerWeapon(playerid,31,250);//FHouseBuy(playerid); //Buy case 3: GivePlayerWeapon(playerid,4,1);//FHouseSell(playerid); //Sell case 4: GivePlayerWeapon(playerid,34,100);//FHouseKeep(playerid); //Keeping case 5: {GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,31,200);}//{FHouseMyHouses(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(HouseMenu, playerid);} //My Houses case 6: {GivePlayerWeapon(playerid,25,100); GivePlayerWeapon(playerid,29,200);}//SetPlayerArmour(playerid,100.0);//{FHouseHouses(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(HouseMenu, playerid);} //Houses } } if(Current == BuyMenu) { TogglePlayerControllable(playerid, 1); switch(row) { case 0: {GivePlayerWeapon(playerid,24,100); GivePlayerMoney(playerid,-2000);} case 1: {GivePlayerWeapon(playerid,25,100); GivePlayerMoney(playerid,-5000);}//{FBisInfo(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Info case 2: {GivePlayerWeapon(playerid,31,200); GivePlayerMoney(playerid,-6000);} case 3: {GivePlayerWeapon(playerid,30,200); GivePlayerMoney(playerid,-4000);}//FBisSell(playerid); //Sell case 4: {GivePlayerWeapon(playerid,33,50); GivePlayerMoney(playerid,-40000);}//FBisCollect(playerid); //Collect case 5: {GivePlayerWeapon(playerid,34,25); GivePlayerMoney(playerid,-50000);}//{FBisMyBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //My Businesses case 6: {GivePlayerWeapon(playerid,16,5); GivePlayerMoney(playerid,-20000);}//{FBisBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Businesses case 7: {GivePlayerWeapon(playerid,29,100); GivePlayerMoney(playerid,-8000);} case 8: {GivePlayerWeapon(playerid,27,100); GivePlayerMoney(playerid,-80000);} case 9: {GivePlayerWeapon(playerid,14,1); GivePlayerMoney(playerid,0);} case 10: {GivePlayerWeapon(playerid,8,1); GivePlayerMoney(playerid,0);} case 11: {GivePlayerWeapon(playerid,10,1); GivePlayerMoney(playerid,0);} //case 12: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} //case 13: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} } } if(Current == TpMenu) { TogglePlayerControllable(playerid, 1); switch(row) { case 0: {SetPlayerPos(playerid,1458.0433,-1068.1302,213.3828); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 1: {SetPlayerPos(playerid,1916.7678,1628.2471,72.2578); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisInfo(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Info case 2: {SetPlayerPos(playerid,1983.8876,958.6110,52.7387); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 3: {SetPlayerPos(playerid,2108.6174,1002.4197,45.6641); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//FBisSell(playerid); //Sell case 4: {SetPlayerPos(playerid,2203.9304,1001.5223,85.9375); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//FBisCollect(playerid); //Collect case 5: {SetPlayerPos(playerid,1969.7570,1913.5195,130.9375); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisMyBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //My Businesses case 6: {SetPlayerPos(playerid,2050.7405,2435.2434,165.6172); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);}//{FBisBises(playerid); TogglePlayerControllable(playerid, 0); ShowMenuForPlayer(BisMenu, playerid);} //Businesses case 7: {SetPlayerPos(playerid,-349.4645,1600.3728,165.0887); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 8: {SetPlayerPos(playerid,-2670.9346,1934.2695,217.2739); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 9: {SetPlayerPos(playerid,-1756.2793,792.9324,167.6563); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 10: {SetPlayerPos(playerid,-2080.2571,243.2312,105.8890); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 12: {SetPlayerPos(playerid,-2790.1995,341.4630,26.9609); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 13: {SetPlayerPos(playerid,-2087.4412,-765.8367,66.8714); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} case 14: {SetPlayerPos(playerid,-56.2496,8.7306,3.1172); ResetPlayerWeapons(playerid); ShowMenuForPlayer(PvpMenu, playerid); SetPlayerHealth(playerid,100.0); SetPlayerArmour(playerid, 100);} //case 15: {GetPlayerArmour(playerid, heals1); SetPlayerArmour(playerid, heals1+40); GivePlayerMoney(playerid,-40000);} } } TogglePlayerControllable(playerid, 1); return 1; }
команда админс
Code
if(strcomp(cmd, "/admins", true) == 1) { new string[MAX_STRING]; new idsa=0; SendClientMessage(playerid, COLOUR_WHITE, lang_texts[1][28]); for (new id = 0; id < MAX_PLAYERS; id++) { if ( IsPlayerConnected(id) && IsPlayerAdmin(id) ) { format(string, sizeof(string), "SERVER: RCON-Àäìèíèñòðàòîð: %s(%d)" , oGetPlayerName(id), id); SendClientMessage(playerid, COLOUR_LIGHTRED,string); idsa++; } } if (idsa==0) { SendClientMessage(playerid, COLOUR_GREY, "никого нету читри нормлаьно!" ); } //format(string,sizeof(string),oGetPlayerName(playerid),playerid); //SendClientMessageToRegistered(COLOUR_GREY, string); return 1; }
Автор - GOLDEN_TIGER Дата добавления - 03.11.2010 в 11:47:38