benzadsa01
โพสต์ 2012-2-25 13:16:44
thank
joe0066za
โพสต์ 2012-2-25 18:13:28
อยากได้ๆ
terkoson
โพสต์ 2012-2-25 20:42:14
ใจมากๆ
motororaz
โพสต์ 2012-3-6 23:16:47
เจ๋งๆ
runglovefoam
โพสต์ 2012-3-7 10:17:44
ครับ
supakit17588
โพสต์ 2012-3-7 10:21:59
เนื้อหาถูกซ่อนไว้ คุณจะต้องแสดงความคิดเห็นก่อนจึงจะสามารถมองเห็นเนื้อหาส่วนที่ถูกซ่อนนี้ได้
popkubz
โพสต์ 2012-3-11 18:57:36
ดีเลย์ใส่ไงหว่า
tanlovejane
โพสต์ 2012-3-12 13:10:43
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;
}
peemz12
โพสต์ 2012-5-18 01:32:58
หฟกดฟหกดหฟกดฟหกดหกด
Patiparn
โพสต์ 2012-8-15 18:28:31
เจ๋งๆ
หน้า:
1
2
3
4
5
6
7
8
9
[10]
11
12
13
14
15
16
17
18