- เครดิต
- 86
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/drag", true) == 0 || strcmp(cmd, "/hc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "¤Ø³äÁèãªèà¨éÒ˹éÒ·ÕèÃÑ° ÍÂèÒàÊÃèÍ!!");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "¤Ø³äÁèÍÂÙèÍÂÙ躹ö");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if (GetVehicleModel(vehicleid) == 522 || GetVehicleModel(vehicleid) == 581 || GetVehicleModel(vehicleid) == 461 || GetVehicleModel(vehicleid) == 521 || GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 463 || GetVehicleModel(vehicleid) == 586 || GetVehicleModel(vehicleid) == 468 )
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /drag [äÍ´Õ/ª×èÍ]");
return 1;
}
new newcar = GetPlayerVehicleID(playerid);
new playa;
playa = ReturnUser(tmp);
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
if(mob[playa] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "à¢ÒÂѧäÁèä´é /Áͺ");
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playa,x,y,z);
if(IsPlayerInRangeOfPoint(playerid, 5, x, y, z))
{
VehicleEnter[playa] = 1;
PutPlayerInVehicle(playa,newcar,1);
PlayerDrag[playa] = playerid;
mob2[playa] = 1;
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* %s ä´é´Ö§µÑÇ %s ¢Öé¹Ã¶", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "à¢ÒäÁèä´éÍÂÙèã¡Åé¤Ø³");
}
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"ö 2 ÅéÍà·èÒ¹Ñé¹·ÕèÊÒÁÒö /drag ä´é");
return 1;
}
}
return 1;
}
//========================================================================//
if(strcmp(cmd, "/Áͺ", true) == 0)
{
new turned[MAX_PLAYER_NAME];
new turnmes[256];
if(IsPlayerConnected(playerid))
{
if(WantedLevel[playerid] >= 1)
{
if (IsAallMember(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "¤Ø³µéͧŧö¡è͹¶Ö§¨ÐÁͺä´é");
return 1;
}
GetPlayerName(playerid,turned,sizeof(turned));
SendClientMessage(playerid, COLOR_GRAD1, "¤Ø³ä´éÁͺµÑÇáÅéÇ");
SendClientMessage(playerid, COLOR_GRAD1, "àÁ×èͤسà¢éҤء ¨Ð¾Ù´ä´éµÒÁ»¡µÔ");
mob[playerid] = 1;
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid, 0xF6F6E7AA);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s(%d) ä´é /Áͺ áÅéÇ ¡ÓÅѧÃÍ¡ÒèѺ¡ØÁ [Tab ª×èÍÊÕ¢ÒÇ]", sendername,playerid);
SendClientMessageToAll(0xF65A01AA, string);
GameTextForPlayer(playerid, "~r~KAK MOB", 2500, 3);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
format(turnmes, sizeof(turnmes), "* á¨é§ÈÙ¹Âì: [%d]%s ä´é /Áͺ áÅéÇ ¡ÓÅѧÃÍ¡ÒèѺ¡ØÁ [Tab ª×èÍÊÕ¢ÒÇ]",playerid,turned);
SendTeamMessage(2, COLOR_OOC, turnmes);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "¤Ø³äÁèãªèá¡ê§/äÁèµÔ´´ÒÇ");
}
}
return 1;
} |
|