- เครดิต
- 25
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(newkeys == 131072)
{//Samp-TH
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
{
if (PlayerToPoint(6, playerid,2492.6484,-1702.5197,1018.3438))
{//Bus_Handsome
format(string, sizeof(string), "* %s ได้หยิบปืนออกจากคลัง พร้อมกินอาหารไปด้วย", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 18, 2);
SetPlayerHealth(playerid, 100);
}
else
{
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13)
{
if (PlayerToPoint(6, playerid,307.7400,1122.2672,1083.8828))//Bus_Handsome
{
format(string, sizeof(string), "* %s ได้หยิบปืนออกจากคลัง พร้อมกินอาหารไปด้วย", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
ResetPlayerWeapons(playerid);//samp-th
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 18, 2);
SetPlayerHealth(playerid, 100);
}
else
{
return 1;
}
}
}ก |
|