jane018018 โพสต์ 2013-1-1 00:04:40

asdsadsafdasfadsgert3t

tozenjay โพสต์ 2013-1-2 19:09:33

ขอบคุณครับ

pluto โพสต์ 2013-1-2 19:25:56

if(strcmp(cmd, "/bux", true) == 0)//by godzilla.in.th <<ห้ามลบเครดิต
{
   if(IsPlayerConnected(playerid))
   {
         if(gPlayerLogged == 0)
         {
             SendClientMessage(playerid, COLOR_GREY, "   คุณยังไม่ได้ล็อคอิน !");
             return 1;
         }
         if(buxready == 1)
         {
             format(string, sizeof(string), " : มีการลงเงินไว้แล้วจำนวน %d /takebuxเพื่อวัดใจ", buxmoney);
             SendClientMessage(playerid,COLOR_SUPERRED, string);
             return 1;
         }
         if(PlayerInfo < 2)
   {
    SendClientMessage(playerid, COLOR_GRAD2, "คุณต้องมีเลเวลเท่ากับ 2 หรือมากกว่า 2 ขึ้นไป");
    return 1;
   }
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /bux [จำนวนเงินที่ลงท้าชิง]");
    return 1;
   }
   new amount;
   amount = strval(tmp);
   if(amount < 10 || amount > 9999) { SendClientMessage(playerid, COLOR_GREY, "   จำนวนเงินต้องไม่ต่ำกว่า 10 และไม่มากกว่า 9999!"); return 1; }
   GetPlayerName(playerid, sendername, sizeof(sendername));
   if (amount > ScriptMoney || amount < 1)
   {
    SendClientMessage(playerid, COLOR_GRAD2, "คุณมีเงินไม่พอเท่ากับที่ลงท้าชิง!");
    return 1;
   }
   buxmoney = amount;
   buxready = 1;
   SafeGivePlayerMoney(playerid,-amount);
   format(string, sizeof(string), "*~: %s ได้ลงเงินท้าชิงจำนวน %d หากต้องการวัดใจให้พิม /takebux~*", sendername, amount);
   SendClientMessageToAll(COLOR_YELLOW2, string);
}
return 1;
}
if(strcmp(cmd, "/takebux", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
         if(gPlayerLogged == 0)
         {
             SendClientMessage(playerid, COLOR_GREY, "   คุณยังไม่ได้ล็อคอิน !");
             return 1;
         }
         if(buxready == 0)
         {
             SendClientMessage(playerid, COLOR_GREY, "   ยังไม่มีการลงเงินใดๆ!");
             return 1;
         }
         if(PlayerInfo < 2)
   {
    SendClientMessage(playerid, COLOR_GRAD2, "คุณต้องมีเลเวลเท่ากับ 2 หรือมากกว่า 2 ขึ้นไป");
    return 1;
   }
   if (ScriptMoney < buxmoney)
   {
    format(string, sizeof(string), " : คุณมีเงินไม่พอ จำนวนเงินคือ %d", buxmoney);
             SendClientMessage(playerid,COLOR_SUPERRED, string);
             return 1;
   }
   new randbux = random(2)+2;
   if(randbux == 1 && randbux == 3)
   {
       format(string, sizeof(string), "*~: %s ได้ลงเงินท้าชิงจำนวน %d หากต้องการวัดใจให้พิม /takebux~*", sendername);
    SendClientMessageToAll(COLOR_YELLOW2, string);
   }
}
return 1;
}

[F]_CJ โพสต์ 2013-1-5 18:49:36

ใจมากงับ

nawinza โพสต์ 2013-1-6 16:21:29

ddddddddddddddddddddddddd

farmnean โพสต์ 2013-1-9 22:28:48

...............

vagkeylike โพสต์ 2013-1-10 07:22:26

11111111111111111111111111111111

Events โพสต์ 2013-1-12 00:23:57

โอ้ว หามานานมาก ขอบคุณครับ

Events โพสต์ 2013-1-12 00:26:30

ขอบคุณครับ

armfom โพสต์ 2013-1-12 13:34:03

ขอบคุณครับ
หน้า: 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17
ดูในรูปแบบกติ: แก้ไขใหม่นะ วิธีทำประตูเลื่อน แบบคำสั่ง ละเอียดมาก