Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(!strcmp(cmd, "/tie", true)){
- if(IsPlayerConnected(playerid)){
- new string[144],car = GetPlayerVehicleID(playerid);
- if(IsAMaf(playerid) || IsAGang(playerid)) return SCM(playerid, COLOR_GREY, "Âàì íå äîñòóïíà äàííàÿ ôóíêöèÿ!");
- if(PlayerInfo[playerid][pRang] < 3) SendClientMessage(playerid, COLOR_GREY, "×òîáû câÿçàòü ÷åëîâåêà âàì íóæåí 3 ðàíã!");
- if(sscanf(params,"d",params[0])) return SendClientMessage(playerid, COLOR_WHITE,"Èñïîëüçîâàíèå: /tie [id]");
- if(!IsPlayerConnected(params[0])) return 1;
- if(params[0] == INVALID_PLAYER_ID) return 1;
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(params[0], car)) return SCM(playerid,-1,"Èãðîê íå â âàøåé ìàøèíå");
- if(params[0] == playerid) return SendClientMessage(playerid, COLOR_GREY, "Âû íå ìîæåòå Ðàçâÿçàòü ñåáÿ!");
- if(PlayerTied[params[0]] == 0){
- format(string, sizeof(string), "Âû áûëè Câÿçàíû %s.", GN(playerid));
- SendClientMessage(params[0], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Âû Câÿçàííû %s.",GN(params[0]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(params[0], "~g~Tied", 2500, 3);
- TogglePlayerControllable(params[0], 0);
- PlayerTied[params[0]] = 1;}else{SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ñâÿçàí.");return 1;}}return 1;}
- if(strcmp(cmd, "/asellhome", true) == 0){
- for(new h = 0; h < sizeof(HouseInfo); h++){
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid,-1, "ÍÈËÇÀ");
- if(HouseInfo[h][hOwned] == 1){
- HouseInfo[h][hOwned] = 0;
- SCM(playerid, COLOR_GRAD1, "Âñå äîìà ïðîäàíû");
- strmid(HouseInfo[h][hOwner], "The State", 0, strlen("The State"), 255);
- BuyHouse();}}return 1;}
- if(strcmp(cmd, "/setpos", true) == 0){
- if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] != 6){
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå: /setpos [ Äîì ]");
- new Float: lwx, Float:lwy, Float:lwz;
- GetPlayerPos(playerid, lwx, lwy, lwz);
- new house = strval(tmp);
- HouseInfo[house][hEntrancex] = lwx;
- HouseInfo[house][hEntrancey]= lwy;
- HouseInfo[house][hEntrancez] = lwz;
- BuyHouse();}return true;}
- else if(strcmp(cmd, "/setposcar", true) == 0){
- if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] != 6){
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "::: Ââåäèòå: /setposcar [ Äîì ]");
- new Float:x ,Float:y, Float:z, Float:a; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a);
- new house = strval(tmp);
- HouseInfo[house][hCarx] = x;
- HouseInfo[house][hCary]= y;
- HouseInfo[house][hCarz] = z;
- HouseInfo[house][hCarc] = a;
- SendClientMessage(playerid, COLOR_GREY, "Êîðäèíàòû ìàøèíû óñòàíîâëåíû");}return 1;}
- else if(strcmp(cmd, "/setklass", true) == 0){
- if(PlayerInfo[playerid][pAdmin] != 6){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement