ลืมรหัสผ่าน
ดู: 800|ตอบกลับ: 4

[คำสั่ง] ดึงตัวคนร้ายขึ้นรถครับ

[คัดลอกลิงก์]
มี 3 แบบนะครับ

1.แบบต้องใส่กุญแจมือก่อนและไม่สามารถดึงรัฐได้
2.แบบไม่ต้องใส่กุญแจมือไม่สามารถดึงรัฐได้
3.แบบไม่ต้องกุญแจมือสามารถดึงรัฐได้


แบบที่ 1

  1.   if(strcmp(cmd, "/drag", true) == 0)

  2. {

  3. new suspect = GetClosestPlayer(playerid);
  4.    

  5. if(!IsPlayerInAnyVehicle(playerid))
  6.    

  7. {
  8.       
  9. SendClientMessage(playerid, COLOR_GREY, "   ¤Ø³äÁèä´éÍÂÙ躹ö !");
  10.       
  11. return 1;
  12.       
  13. }
  14.       
  15. if(gTeam[playerid] == 2 || PlayerInfo[playerid][pAdmin] >= 4)

  16. tmp = strtok(cmdtext, idx);


  17. if(!strlen(tmp))
  18.    
  19. {

  20.       SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /drag [Playerid/PartOfName]");

  21.   return 1;
  22.   
  23. }

  24. if(IsPlayerConnected(suspect))

  25. {
  26.      
  27. suspect = ReturnUser(tmp);
  28.    
  29. new vehid = GetPlayerVehicleID(playerid);
  30.    
  31.    
  32. new seat = 4;
  33.    
  34. if(PlayerCuffed[suspect] == 0)
  35.    
  36. {
  37.    
  38. SendClientMessage(playerid, COLOR_GREY, "   ¼ÙéµéͧËÒÂѧäÁèä´éãÊè¡Ø­á¨Á×Í !");
  39.    
  40. return 1;
  41.    
  42. }
  43.    
  44. if (ProxDetectorS(100000.0, playerid, suspect))
  45.    
  46. {
  47.          
  48. if(IsACop(suspect))
  49.             
  50. {
  51.                 SendClientMessage(playerid, COLOR_GREY, "   ¤Ø³äÁèÊÒÁÒö´Ö§ µÓÃǨ/FBI/¹ÒÇÔ¡â¸Թ ä´é !");
  52.                 return 1;
  53.                 }
  54.                
  55. new Float:pos[6];
  56.                 GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  57.                 GetPlayerPos(suspect, pos[3], pos[4], pos[5]);
  58.                 if (floatcmp(floatabs(floatsub(pos[0], pos[3])), 10.0) != -1 &&
  59.                 floatcmp(floatabs(floatsub(pos[1], pos[4])), 10.0) != -1 &&
  60.                 floatcmp(floatabs(floatsub(pos[2], pos[5])), 10.0) != -1) return false;
  61.             
  62. GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
  63.               
  64. GetPlayerName(playerid, sendername, sizeof(sendername));
  65.                 format(string, sizeof(string), "* %s ä´é´Ö§µÑÇ %s ¢Öé¹Ã¶", sendername ,giveplayer);
  66.                 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  67.                 TogglePlayerControllable(suspect, 0);
  68.             
  69. PutPlayerInVehicle(suspect,vehid,seat);
  70.    
  71. }
  72.       
  73. else
  74.       
  75. {

  76.   
  77. SendClientMessage(playerid, COLOR_GREY, "   ¼ÙéµéͧËÒÍÂÙèËèÒ§¨Ò¡¤Ø³ÁÒ¡à¡Ô¹ä» !");
  78.    
  79.    
  80. return 1;
  81.    
  82. }
  83.   
  84. }
  85.   
  86. return 1;

  87. }

คัดลอกไปที่คลิปบอร์ด




แบบที่ 2 ครับ





  1. if(strcmp(cmd, "/drag", true) == 0)

  2. {

  3. new suspect = GetClosestPlayer(playerid);
  4.    

  5. if(!IsPlayerInAnyVehicle(playerid))
  6.    

  7. {
  8.       
  9. SendClientMessage(playerid, COLOR_GREY, "   ¤Ø³äÁèä´éÍÂÙ躹ö !");
  10.       
  11. return 1;
  12.       
  13. }
  14.       
  15. if(gTeam[playerid] == 2 || PlayerInfo[playerid][pAdmin] >= 4)

  16. tmp = strtok(cmdtext, idx);


  17. if(!strlen(tmp))
  18.    
  19. {

  20.       SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /drag [Playerid/PartOfName]");

  21.   return 1;
  22.   
  23. }

  24. if(IsPlayerConnected(suspect))

  25. {
  26.      
  27. suspect = ReturnUser(tmp);
  28.    
  29. new vehid = GetPlayerVehicleID(playerid);
  30.    
  31.    
  32. new seat = 4;
  33.    
  34. if (ProxDetectorS(100000.0, playerid, suspect))
  35.    
  36. {
  37.          
  38. if(IsACop(suspect))
  39.             
  40. {
  41.                 SendClientMessage(playerid, COLOR_GREY, "   ¤Ø³äÁèÊÒÁÒö´Ö§ µÓÃǨ/FBI/¹ÒÇÔ¡â¸Թ ä´é !");
  42.                 return 1;
  43.                 }
  44.                
  45. new Float:pos[6];
  46.                 GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  47.                 GetPlayerPos(suspect, pos[3], pos[4], pos[5]);
  48.                 if (floatcmp(floatabs(floatsub(pos[0], pos[3])), 10.0) != -1 &&
  49.                 floatcmp(floatabs(floatsub(pos[1], pos[4])), 10.0) != -1 &&
  50.                 floatcmp(floatabs(floatsub(pos[2], pos[5])), 10.0) != -1) return false;
  51.             
  52. GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
  53.               
  54. GetPlayerName(playerid, sendername, sizeof(sendername));
  55.                 format(string, sizeof(string), "* %s ä´é´Ö§µÑÇ %s ¢Öé¹Ã¶", sendername ,giveplayer);
  56.                 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  57.                 TogglePlayerControllable(suspect, 0);
  58.             
  59. PutPlayerInVehicle(suspect,vehid,seat);
  60.    
  61. }
  62.       
  63. else
  64.       
  65. {

  66.   
  67. SendClientMessage(playerid, COLOR_GREY, "   ¼ÙéµéͧËÒÍÂÙèËèÒ§¨Ò¡¤Ø³ÁÒ¡à¡Ô¹ä» !");
  68.    
  69.    
  70. return 1;
  71.    
  72. }
  73.   
  74. }
  75.   
  76. return 1;

  77. }

คัดลอกไปที่คลิปบอร์ด



แบบที่ 3 ครับ




  1. if(strcmp(cmd, "/drag", true) == 0)

  2. {

  3. new suspect = GetClosestPlayer(playerid);
  4.    

  5. if(!IsPlayerInAnyVehicle(playerid))
  6.    

  7. {
  8.       
  9. SendClientMessage(playerid, COLOR_GREY, "   ¤Ø³äÁèä´éÍÂÙ躹ö !");
  10.       
  11. return 1;
  12.       
  13. }
  14.       
  15. if(gTeam[playerid] == 2 || PlayerInfo[playerid][pAdmin] >= 4)

  16. tmp = strtok(cmdtext, idx);


  17. if(!strlen(tmp))
  18.    
  19. {

  20.       SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /drag [Playerid/PartOfName]");

  21.   return 1;
  22.   
  23. }

  24. if(IsPlayerConnected(suspect))

  25. {
  26.      
  27. suspect = ReturnUser(tmp);
  28.    
  29. new vehid = GetPlayerVehicleID(playerid);
  30.    
  31.    
  32. new seat = 4;
  33.    
  34. if (ProxDetectorS(100000.0, playerid, suspect))
  35.    
  36. {
  37.                
  38. new Float:pos[6];
  39.                 GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  40.                 GetPlayerPos(suspect, pos[3], pos[4], pos[5]);
  41.                 if (floatcmp(floatabs(floatsub(pos[0], pos[3])), 10.0) != -1 &&
  42.                 floatcmp(floatabs(floatsub(pos[1], pos[4])), 10.0) != -1 &&
  43.                 floatcmp(floatabs(floatsub(pos[2], pos[5])), 10.0) != -1) return false;
  44.             
  45. GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
  46.               
  47. GetPlayerName(playerid, sendername, sizeof(sendername));
  48.                 format(string, sizeof(string), "* %s ä´é´Ö§µÑÇ %s ¢Öé¹Ã¶", sendername ,giveplayer);
  49.                 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  50.                 TogglePlayerControllable(suspect, 0);
  51.             
  52. PutPlayerInVehicle(suspect,vehid,seat);
  53.    
  54. }
  55.       
  56. else
  57.       
  58. {

  59.   
  60. SendClientMessage(playerid, COLOR_GREY, "   ¼ÙéµéͧËÒÍÂÙèËèÒ§¨Ò¡¤Ø³ÁÒ¡à¡Ô¹ä» !");
  61.    
  62.    
  63. return 1;
  64.    
  65. }
  66.   
  67. }
  68.   
  69. return 1;

  70. }


คัดลอกไปที่คลิปบอร์ด




โพสต์ 2011-1-13 11:59:47 | ดูโพสต์ทั้งหมด
เนื้อหาถูกซ่อนไว้ สามารถมองเห็นได้เฉพาะเจ้าของโพสต์เท่านั้น
โพสต์ 2011-1-13 12:00:04 | ดูโพสต์ทั้งหมด
เนื้อหาถูกซ่อนไว้ สามารถมองเห็นได้เฉพาะเจ้าของโพสต์เท่านั้น
โพสต์ 2011-1-13 16:12:02 | ดูโพสต์ทั้งหมด
เนื้อหาถูกซ่อนไว้ สามารถมองเห็นได้เฉพาะเจ้าของโพสต์เท่านั้น
โพสต์ 2011-10-2 08:29:46 | ดูโพสต์ทั้งหมด
เนื้อหาถูกซ่อนไว้ สามารถมองเห็นได้เฉพาะเจ้าของโพสต์เท่านั้น
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

ปิด

เว็บมาสเตอร์แนะนำก่อนหน้า /1 ต่อไป

รูปแบบข้อความล้วน|Mobile|รายชื่อผู้ถูกระงับบัญชี| Samp-TH GTAOnline Thailand



เว็บสอนเปิดเซิฟเวอร์ GTA SAMP ONLINE, แจกสคริปต์ GTA, ขายสคริปต์ GTA, ซื้อสคริปต์ GTA SAMP, รวมระบบ GTA SAMP, รวมเซิฟ GTA ONLINE SAMP, SAMP-TH.NET, เกมจีทีเอ, GTA SAN, หาเซิฟ GTA เล่น, โปรโมทเซิฟ GTA ONLINE, วิธีเล่น GTA ONLINE, จีทีเอ ออนไลน์, หาเซิฟ GTA, เซิฟ GTA 0.3.7, เซิฟ GTA 0.3e RC5, ระบบเซิฟ GTA, สคริปต์ GTA, GTA ออนไลน์, เว็บโหลด GTA, SAMP-TH, GTA-TH, โคโล GTA, หาเซิฟ GTA ONLINE, COLO-GTA, โคโลจีทีเอ, เช่าโคโล GTA, เซิฟ GTA ออนไลน์

Copyright © 2001-2013 Comsenz Inc.   All Rights Reserved.

Powered by Discuz! X3.4

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้