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

[คำสั่ง] แหกคุกครับ

[คัดลอกลิงก์]


  1. if(strcmp(cmd,"/แหกคุก",true)==0)
  2.     {

  3. if(PlayerToPoint(3, playerid,227.4012,110.1810,999.0156))
  4.       
  5. {
  6.            
  7. if(IsPlayerConnected(playerid))
  8.            
  9. {
  10.               
  11. new kug = 1 + random (4);
  12.               
  13. ApplyAnimation(playerid, "FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  14.               
  15. if(IsPlayerConnected(playerid))

  16.   
  17. {
  18.      

  19. if(kug == 1)
  20.       
  21. {
  22.       
  23. SendClientMessage(playerid, COLOR_LIGHTBLUE, " ผู้คุมขัง: เพิ่มเวลาการติดคุกของคุณเป็น 300 วินาทีและขังอีกห้อง");
  24.       
  25. PlayerInfo[giveplayerid][pJailTime] += 100;
  26.       
  27. PlayerInfo[giveplayerid][pJailed] += 100;
  28.       
  29. //ApplyAnimation(playerid, "FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  30.       
  31. SetPlayerInterior(playerid,10);
  32.       
  33. SetPlayerPos(playerid, 219.1278,110.9014,999.0156);
  34.       
  35. format(string, sizeof(string), "** %s พยายามแหกคุก แต่ล้มเหลว", sendername);
  36.       
  37. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  38.       
  39. return 1;
  40.       
  41. }
  42.       
  43. if(kug == 2)
  44.       
  45. {
  46.       
  47. SendClientMessage(playerid, COLOR_LIGHTBLUE, " ผู้คุมขัง: เพิ่มเวลาการติดคุกของคุณเป็น 300 วินาทีและขังอีกห้อง");
  48.       
  49. PlayerInfo[giveplayerid][pJailTime] += 200;
  50.       
  51. PlayerInfo[giveplayerid][pJailed] += 200;
  52.       
  53. //ApplyAnimation(playerid, "FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  54.       
  55. SetPlayerInterior(playerid,10);
  56.       
  57. SetPlayerPos(playerid, 223.2836,109.9333,999.0156);
  58.       
  59. format(string, sizeof(string), "** %s พยายามแหกคุก แต่ล้มเหลว", sendername);
  60.       
  61. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  62.       
  63. return 1;
  64.       
  65. }
  66.       
  67. if(kug == 3)
  68.       
  69. {
  70.       
  71. SendClientMessage(playerid, COLOR_LIGHTBLUE, " ผู้คุมขัง: เพิ่มเวลาการติดคุกของคุณเป็น 300 วินาทีและขังอีกห้อง");
  72.       
  73. PlayerInfo[giveplayerid][pJailTime] += 300;
  74.       
  75. PlayerInfo[giveplayerid][pJailed] += 300;
  76.       
  77. //ApplyAnimation(playerid, "FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  78.       
  79. SetPlayerInterior(playerid,10);
  80.       
  81. SetPlayerPos(playerid, 215.6617,110.3416,999.0156);
  82.       
  83. format(string, sizeof(string), "** %s พยายามแหกคุก แต่ล้มเหลว", sendername);
  84.       
  85. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  86.       
  87. return 1;
  88.       
  89. }
  90.       
  91. if(kug == 4)
  92.       
  93. {

  94.   
  95. PlayerInfo[giveplayerid][pJailTime] = 0;
  96.       
  97. PlayerInfo[giveplayerid][pJailed] = 0;
  98.       
  99. //ApplyAnimation(playerid, "FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  100.       
  101. SetPlayerInterior(playerid,10);
  102.       
  103. SetPlayerPos(playerid, 227.1211,114.7552,999.0156);

  104.   
  105. SetPlayerSkin(playerid, 23);
  106.       
  107. format(string, sizeof(string), "** %s แหกคุกสำเร็จ", sendername);
  108.       
  109. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

  110.   
  111. return 1;
  112.       
  113. }

  114.   
  115. }
  116.       
  117. }
  118.       
  119. else
  120.    
  121. {
  122.       
  123. SendClientMessage(playerid, COLOR_GREY, "   คุณไม่ได้อยู่ที่คุก!");
  124.       
  125. return 1;
  126.       
  127. }
  128.       
  129. }
  130.    
  131. return 1;
  132.     }

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


โพสต์ 2011-2-27 00:53:47 | ดูโพสต์ทั้งหมด
ใส่เครดิดด้วยครับ
โพสต์ 2011-10-28 14:04:08 | ดูโพสต์ทั้งหมด
[ปัดฝุ่น]แนะนำ
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

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

ปิด

เว็บมาสเตอร์แนะนำก่อนหน้า /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

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