xSLIMx Дата: Пятница, 16.10.2009, 09:59 | Сообщение # 73
Директор ФБР
Группа: Game Managers
Сообщений: 250
Награды:
1
Репутация:
21
Статус: Offline
Рок дабавь в мод такое))))
if(strcmp(cmd, "/setallhp", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 2) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /setallhp [health]"); return 1; } new health = strval(tmp); for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(i != INVALID_PLAYER_ID) { if(ProxDetectorS(100.0, playerid, i)) { SetPlayerHealth(i, health); } } } } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "AdmCmd: %s установил всем 100 здоровья в радиусе 100 м", sendername); ABroadCast(COLOR_RED,string,1); } else SendClientMessage(playerid, COLOR_GREY, " Вы не уполномочены использовать эту команду!"); } return 1; }
//---------- if(strcmp(cmd, "/суда сцуко", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "* Юзайте /суда сцуко [ID сцуки]"); return 1; } new Float:pidarokcx,Float:pidarokcy,Float:pidarokcz; new pidarok; pidarok = ReturnUser(tmp); if (IsPlayerConnected(pidarok)) { if(pidarok != INVALID_PLAYER_ID) { if (PlayerInfo[pidarok][pAdmin] > 1337) { SendClientMessage(playerid, COLOR_GRAD1, "* Вы неможете называть сцукой главного админа! хам"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 3) { GetPlayerPos(playerid, pidarokcx, pidarokcy, pidarokcz); if(PlayerInfo[playerid][pInt] > 0) { SetPlayerInterior(pidarok,PlayerInfo[playerid][pInt]); PlayerInfo[pidarok][pInt] = PlayerInfo[playerid][pInt]; PlayerInfo[pidarok][pLocal] = PlayerInfo[playerid][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(pidarok,0); } if(pidarokcz > 930.0 && PlayerInfo[playerid][pInt] == 0) // { SetPlayerInterior(pidarok,1); PlayerInfo[pidarok][pInt] = 1; } if (GetPlayerState(pidarok) == 2) { TelePos[pidarok][0] = 0.0; TelePos[pidarok][1] = 0.0; new tmpcar = GetPlayerVehicleID(pidarok); SetVehiclePos(tmpcar, pidarokcx, pidarokcy+4, pidarokcz); } else { SetPlayerPos(pidarok,pidarokcx, pidarokcy+2, pidarokcz); } SendClientMessage(pidarok, COLOR_GRAD1, " Вы - сцуко вас за рога приволокли к админу"); } else { SendClientMessage(playerid, COLOR_GRAD1, " Только админ может называть игроков сцуками "); } } } else { format(string, sizeof(string), " %d эта сцука не онлайн!!11", pidarok); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
if(strcmp(cmd, "/звани сцуко", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "* Юзай: /звани сцуко [телефон сцуки]"); return 1; } if(PlayerInfo[playerid][pPnumber] == 0) { SendClientMessage(playerid, COLOR_GRAD2, " А вот ты нихуя не пазваниш мабилке у тя нЭту !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s вытащил мабылку.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); new phonenumb = strval(tmp); if(phonenumb == 911) { SendClientMessage(playerid, COLOR_WHITE, "*Мабылко: Юзай Т или Ф6 чтобы говорить с каким то быдлом, введите /hangup чтобы поднять свою мабилку"); SendClientMessage(playerid, COLOR_ALLDEPT, "*Екстрасенс: Какая служба вам требуется копы или педики?"); Mobile[playerid] = 911; return 1; } if(phonenumb == PlayerInfo[playerid][pPnumber]) { SendClientMessage(playerid, COLOR_GRAD2, " Вы быдло по етому у вас тон как у бамжа..."); return 1; } if(Mobile[playerid] != 255) { SendClientMessage(playerid, COLOR_GRAD2, " Вы вздрочьнули и готовы званить..."); return 1; } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0) { giveplayerid = i; Mobile[playerid] = giveplayerid; //caller connecting if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PhoneOnline[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " Этот игрок не в игре !"); return 1; } if (Mobile[giveplayerid] == 255) { format(string, sizeof(string), " Ваш мобильник звонит Введите (/Pickup) ID звонящего: %s", sendername); SendClientMessage(giveplayerid, COLOR_YELLOW, string); GetPlayerName(giveplayerid, sendername, sizeof(sendername)); RingTone[giveplayerid] = 10; format(string, sizeof(string), "* Телефон быдла именуемым %s трезвонит бля.", sendername); SendClientMessage(playerid, COLOR_WHITE, "*Мабылко: Юзай Т или Ф6 чтобы говорить с каким то быдлом, введите /hangup чтобы поднять свою мабилку"); ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); CellTime[playerid] = 1; return 1; } } } } } } SendClientMessage(playerid, COLOR_GRAD2, " Вы быдло по етому у вас тон как у бамжа..."); } return 1; }
//----------------------------------[mole]----------------------------------------------- if(strcmp(cmd, "/моль", true) == 0 && PlayerInfo[playerid][pAdmin] >= 4) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { //SendClientMessage(playerid, COLOR_GRAD2, "* Баран юзай: /моль [тэкст]"); return 1; } format(string, sizeof(string), "* Саабщение моли: %s, Отправитель: НУП (а номер .!. вам)",result); if (gTeam[playerid] < 3){SendClientMessage(playerid, COLOR_YELLOW, string);} SendEnemyMessage(COLOR_YELLOW, string); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam[i] >= 3 && gPlayerSpawned[i]) { RingTone[i] =20; } } } printf(" HY6: %s", result); } return 1; }
[GM]True Rp (© 2009 SliM) more than 40000 lines, more than 2 cups of coffee were drunk Моя коллекция модов (РП и РПГ) Для сампа Пару переделок ЛА-РП
Пару Модификаций ГФ
Пару ранних модов с состоявщихся серверов
xSLIMx Дата: Среда, 11.11.2009, 23:29 | Сообщение # 75
Директор ФБР
Группа: Game Managers
Сообщений: 250
Награды:
1
Репутация:
21
Статус: Offline
Часть 2 Добавлено (16.10.2009, 10:39) ---------------------------------------------
if(strcmp(cmd, "/дать по еблу", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "* Юзай: /дать по еблу [ид лоха]"); return 1; } new playa; new Float:shealth; new Float:slx, Float:sly, Float:slz; playa = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >=1) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerHealth(playa, shealth); SetPlayerHealth(playa, shealth-5); GetPlayerPos(playa, slx, sly, slz); SetPlayerPos(playa, slx, sly, slz+5); PlayerPlaySound(playa, 1130, slx, sly, slz+5); printf(" xD %s Dal po e6JIy %s",sendername, giveplayer); format(string, sizeof(string), "* Репер Сява приказал %s дать по еблу %s",sendername,giveplayer ); ABroadCast(COLOR_LIGHTRED,string,1); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Вы не можете использовать эту команду!"); } } return 1; }
if(strcmp(cmd, "/стой сцука", true) ==0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2 || IsACop(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_GREY, " ТЫ ебан или как ?! Хули с мащины бьеш!"); return 1; } new suspect = GetClosestPlayer(playerid); if(IsPlayerConnected(suspect)) { if(PlayerCuffed[suspect] > 0) { SendClientMessage(playerid, COLOR_GREY, " Сцука и так в кантузии!!1"); return 1; } if(GetDistanceBetweenPlayers(playerid,suspect) < 5) { if(gTeam[suspect] == 2) { SendClientMessage(playerid, COLOR_GREY, " ТЫ быдло хули твариш!11 не ударить копа ваенного фбр!"); return 1; } if(IsPlayerInAnyVehicle(suspect)) { SendClientMessage(playerid, COLOR_GREY, " Сцука в тазике!!11 ОЛОЛО!!1 Дастань ее ат туда!"); return 1; } GetPlayerName(suspect, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* Быдло %s ебнуло тя тазером на 8 сЭкунд.", sendername); SendClientMessage(suspect, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Ты астанавил сцуку %s на 8 сЭкунд.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s ебнул тазером %s, ему БОБО.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(suspect, "~p~C YKA ЈOћY¤њћ ЏAџEPA", 2500, 3); TogglePlayerControllable(suspect, 0); PlayerCuffed[suspect] = 1; PlayerCuffedTime[suspect] = 8; } else { SendClientMessage(playerid, COLOR_GREY, " Нету рядом сцук!"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Вы не коп ылы НГ ылы ФБР !"); } }//not connected return 1; }
if(strcmp(cmd, "/пшло нах с машыны", true) == 0) { if(IsPlayerConnected(playerid)) { new State; if(IsPlayerInAnyVehicle(playerid)) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY," ТЫ шо глупый?! Токо вадила может !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /пшло нах с машыны [сцукин ид]"); return 1; } new playa; playa = ReturnUser(tmp); new test; test = GetPlayerVehicleID(playerid); if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, "* Хули твариш?! тазик уже не нужен?!!"); return 1; } if(IsPlayerInVehicle(playa,test)) { new PName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PName,sizeof(PName)); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* Вы паслали нах быдло %s из тазика!", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Быдло %s паслал вас нах из сваего тазика !", PName); SendClientMessage(playa, COLOR_LIGHTBLUE, string); RemovePlayerFromVehicle(playa); } else { SendClientMessage(playerid, COLOR_GREY, " Сцука не стабой в машине!"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Непральный ид сцуукии!"); } } else { SendClientMessage(playerid, COLOR_GREY, " Епт в машине юзай!"); } } return 1; }
if(strcmp(cmd, "/checkweapons", true) == 0) // Edited by Ellis, orginally from CW-RP { if (PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_GREY, "You are not authorized"); return 1; } tmp = strtok(cmdtext,idx); if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /checkweapons [playerid/partOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if (giveplayerid == INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_GREY, "That player is offline"); return 1; } new sweapon, sammo; GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), " У игрока %s такое оружие:", giveplayer); SendClientMessage(playerid, COLOR_GRAD1, string); for (new i=0; i<9; i++) { GetPlayerWeaponData(giveplayerid, i, sweapon, sammo); if(sweapon != 0) { format(string, sizeof(string), "%d: %d (%d)", i, sweapon, sammo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
//--- if(strcmp(cmd, "/getip", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext,idx); new playersip[256]; if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_GRAD1,"Использование: /getip [Players ID]"); return 1; } giveplayerid = ReturnUser(tmp); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerIp(giveplayerid,playersip,sizeof(playersip)); format(string, sizeof(string), " Игрок: %s IP: %s",giveplayer,playersip); SendClientMessage(playerid,COLOR_GREEN,string); } return 1; }
Добавлено (16.10.2009, 10:49) --------------------------------------------- Часть 3
if(strcmp(cmd, "/пшло нах из дома", true) == 0) { if(IsPlayerConnected(playerid)) { new bouse = PlayerInfo[playerid][pPhousekey]; if (bouse != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(i != playerid) { if (PlayerInfo[i][pPhousekey] == PlayerInfo[playerid][pPhousekey] ) { SendClientMessage(i, COLOR_WHITE, " Вы были посланы нах с дома!!11 ОЛОЛО!11 Вы бомжара."); SendClientMessage(playerid, COLOR_WHITE, " Все пашли нах и туса законьчилась."); PlayerInfo[i][pPhousekey] = 255; return 1; } } } } } else { SendClientMessage(playerid, COLOR_GRAD2, " ЕПТ хаты у тя нету!"); return 1; } } return 1; }
Вот и все ждите новых команд))) З.Ы. + мне в репу Мая любимая каманда
Добавлено (16.10.2009, 16:50) ---------------------------------------------Па прозьбе рокета!!!
if(strcmp(cmd, "/к сцуке", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /к сцуке [ид сцуки]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SendClientMessage(playerid, COLOR_GRAD1, " Вы телепартиравалися к сцуке"); } else { SendClientMessage(playerid, COLOR_GRAD1, " Ты асел, токо великий и все могущий админ может юзать!"); } } } else { format(string, sizeof(string), " %d такой сцуки нет на сервере.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
Добавлено (11.11.2009, 23:29) ---------------------------------------------
Quote (SONY )
КОгда входишь на корабль срабатывает защита и всем военым в чат пишут "Кто то пробрался на нашу базу Проверте" ну тип того =)
Вообще это по сути сделать 100% реально... могу начат даж... примерно так:
Quote
"Кто то пробрался на нашу базу Проверте"
if(PlayerToPoint(50.0,playerid,x,y,z) { WantedPoints[playerid] += 3; SetPlayerCriminal(playerid,255, "** Проникновение на базу Национальной Гвардии **"); }
Такой способ ( де коорды х.у.я) - дето середина коробля
Вставить думаю моно под то место, де не лигальное рыоловство или выше/ниже.
[GM]True Rp (© 2009 SliM) more than 40000 lines, more than 2 cups of coffee were drunk Моя коллекция модов (РП и РПГ) Для сампа Пару переделок ЛА-РП
Пару Модификаций ГФ
Пару ранних модов с состоявщихся серверов
Сообщение отредактировал xSLIMx - Пятница, 16.10.2009, 10:54