Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. else if(!strcmp(cmd, "/tie", true)){
  2. if(IsPlayerConnected(playerid)){
  3. new string[144],car = GetPlayerVehicleID(playerid);
  4. if(IsAMaf(playerid) || IsAGang(playerid)) return SCM(playerid, COLOR_GREY, "Âàì íå äîñòóïíà äàííàÿ ôóíêöèÿ!");
  5. if(PlayerInfo[playerid][pRang] < 3) SendClientMessage(playerid, COLOR_GREY, "×òîáû câÿçàòü ÷åëîâåêà âàì íóæåí 3 ðàíã!");
  6. if(sscanf(params,"d",params[0])) return SendClientMessage(playerid, COLOR_WHITE,"Èñïîëüçîâàíèå: /tie [id]");
  7. if(!IsPlayerConnected(params[0])) return 1;
  8. if(params[0] == INVALID_PLAYER_ID) return 1;
  9. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(params[0], car)) return SCM(playerid,-1,"Èãðîê íå â âàøåé ìàøèíå");
  10. if(params[0] == playerid) return SendClientMessage(playerid, COLOR_GREY, "Âû íå ìîæåòå Ðàçâÿçàòü ñåáÿ!");
  11. if(PlayerTied[params[0]] == 0){
  12. format(string, sizeof(string), "Âû áûëè Câÿçàíû %s.", GN(playerid));
  13. SendClientMessage(params[0], COLOR_LIGHTBLUE, string);
  14. format(string, sizeof(string), "Âû Câÿçàííû %s.",GN(params[0]));
  15. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  16. GameTextForPlayer(params[0], "~g~Tied", 2500, 3);
  17. TogglePlayerControllable(params[0], 0);
  18. PlayerTied[params[0]] = 1;}else{SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ñâÿçàí.");return 1;}}return 1;}
  19. if(strcmp(cmd, "/asellhome", true) == 0){
  20. for(new h = 0; h < sizeof(HouseInfo); h++){
  21. if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid,-1, "ÍÈËÇÀ");
  22. if(HouseInfo[h][hOwned] == 1){
  23. HouseInfo[h][hOwned] = 0;
  24. SCM(playerid, COLOR_GRAD1, "Âñå äîìà ïðîäàíû");
  25. strmid(HouseInfo[h][hOwner], "The State", 0, strlen("The State"), 255);
  26. BuyHouse();}}return 1;}
  27. if(strcmp(cmd, "/setpos", true) == 0){
  28. if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] != 6){
  29. tmp = strtok(cmdtext, idx);
  30. if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå: /setpos [ Äîì ]");
  31. new Float: lwx, Float:lwy, Float:lwz;
  32. GetPlayerPos(playerid, lwx, lwy, lwz);
  33. new house = strval(tmp);
  34. HouseInfo[house][hEntrancex] = lwx;
  35. HouseInfo[house][hEntrancey]= lwy;
  36. HouseInfo[house][hEntrancez] = lwz;
  37. BuyHouse();}return true;}
  38. else if(strcmp(cmd, "/setposcar", true) == 0){
  39. if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] != 6){
  40. tmp = strtok(cmdtext, idx);
  41. if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "::: Ââåäèòå: /setposcar [ Äîì ]");
  42. new Float:x ,Float:y, Float:z, Float:a; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a);
  43. new house = strval(tmp);
  44. HouseInfo[house][hCarx] = x;
  45. HouseInfo[house][hCary]= y;
  46. HouseInfo[house][hCarz] = z;
  47. HouseInfo[house][hCarc] = a;
  48. SendClientMessage(playerid, COLOR_GREY, "Êîðäèíàòû ìàøèíû óñòàíîâëåíû");}return 1;}
  49. else if(strcmp(cmd, "/setklass", true) == 0){
  50. if(PlayerInfo[playerid][pAdmin] != 6){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement