- เครดิต
- 155
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/เตะก้น", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /เตะก้น [ id ]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "คุณต้องมีเลเวล3ถึงจะเตะได้");
return 1;
}
if(SpamStrings[playerid] >= MAX_SPAM)
{
SendClientMessage(playerid,COLOR_WHITE," คุณไล่เตะก้นเขาจนหมดเเรง");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(2.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " คุณไม่สามารถเตะก้นตัวเองใด้ !"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0, 0);
ApplyAnimation(giveplayerid,"PED","EV_dive",4.0,0,1,1,1,0, 0);
format(string, sizeof(string), "* %s ได้กระโดดเตะก้นของ%sอย่างแรง!!!", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SpamStrings[playerid] += 5;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " คุณอยู่ไกลเกินไป");
}
}//invalid id
}
else
{
format(string, sizeof(string), " %ไม่ได้อยู่ในเกมส์", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
if(sif(strcmp(cmd, "/เตะก้น", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /เตะก้น [ id ]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "คุณต้องมีเลเวล3ถึงจะเตะได้");
return 1;
}
if(SpamStrings[playerid] >= MAX_SPAM)
{
SendClientMessage(playerid,COLOR_WHITE," คุณไล่เตะก้นเขาจนหมดเเรง");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(2.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " คุณไม่สามารถเตะก้นตัวเองใด้ !"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0, 0);
ApplyAnimation(giveplayerid,"PED","EV_dive",4.0,0,1,1,1,0, 0);
format(string, sizeof(string), "* %s ได้กระโดดเตะก้นของ%sอย่างแรง!!!", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SpamStrings[playerid] += 5;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " คุณอยู่ไกลเกินไป");
}
}//invalid id
}
else
{
format(string, sizeof(string), " %ไม่ได้อยู่ในเกมส์", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
if(sif(strcmp(cmd, "/เตะก้น", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /เตะก้น [ id ]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "คุณต้องมีเลเวล3ถึงจะเตะได้");
return 1;
}
if(SpamStrings[playerid] >= MAX_SPAM)
{
SendClientMessage(playerid,COLOR_WHITE," คุณไล่เตะก้นเขาจนหมดเเรง");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(2.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, " คุณไม่สามารถเตะก้นตัวเองใด้ !"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0, 0);
ApplyAnimation(giveplayerid,"PED","EV_dive",4.0,0,1,1,1,0, 0);
format(string, sizeof(string), "* %s ได้กระโดดเตะก้นของ%sอย่างแรง!!!", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SpamStrings[playerid] += 5;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " คุณอยู่ไกลเกินไป");
}
}//invalid id
}
else
{
format(string, sizeof(string), " %ไม่ได้อยู่ในเกมส์", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
if(s |
|