- เครดิต
- 231
- ความรู้
-
- เงิน $
-
- ความดี
-
|
else if(strcmp(x_job,"deagle",true) == 0)
{
if(PlayerDeagle[playerid] < 999)
{
GetPlayerHealth(playerid, OldHealthDeagle[playerid]);
GetPlayerArmour(playerid, OldArmourDeagle[playerid]);
GetPlayerHealth(PlayerDeagle[playerid], OldHealthDeagle[PlayerDeagle[playerid]]);
GetPlayerArmour(PlayerDeagle[playerid], OldArmourDeagle[PlayerDeagle[playerid]]);
for (new i; i<13; i++)
{
GetPlayerWeaponData(playerid, i, PlayerWeaponDeagle[playerid], PlayerAmmoDeagle[playerid]);
}
for (new i; i<13; i++)
{
GetPlayerWeaponData(PlayerDeagle[playerid], i, PlayerWeaponDeagle[PlayerDeagle[playerid]], PlayerAmmoDeagle[PlayerDeagle[playerid]]);
}
interiordeagle[playerid] = GetPlayerInterior(playerid);
GetPlayerPos(playerid, TeleportDeagle[playerid][0],TeleportDeagle[playerid][1],TeleportDeagle[playerid][2]);
virtualworlddeagle[playerid] = GetPlayerVirtualWorld(playerid);
respawndeagle[playerid] = 1;
interiordeagle[PlayerDeagle[playerid]] = GetPlayerInterior(PlayerDeagle[playerid]);
GetPlayerPos(PlayerDeagle[playerid], TeleportDeagle[PlayerDeagle[playerid]][0],TeleportDeagle[PlayerDeagle[playerid]][1],TeleportDeagle[PlayerDeagle[playerid]][2]);
virtualworlddeagle[PlayerDeagle[playerid]] = GetPlayerVirtualWorld(PlayerDeagle[playerid]);
respawndeagle[PlayerDeagle[playerid]] = 1;
GetPlayerName(PlayerDeagle[playerid], giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " คุณได้รับคำท้าดวล Desert Eagle ของ %s ค่าดวล %d", giveplayer, PlayerDeagleMoney[playerid]);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), " %s ได้รับคำท้าดวล Desert Eagle ของคุณค่าดวล %d", sendername, PlayerDeagleMoney[playerid]);
SendClientMessage(PlayerDeagle[playerid], COLOR_GREY, string);
deaglevirtualworld++;
SafeResetPlayerWeapons(playerid);
SafeResetPlayerWeapons(PlayerDeagle[playerid]);
SafeGivePlayerWeapon(playerid,24,350);
SafeGivePlayerWeapon(PlayerDeagle[playerid],24,350);
SetPlayerHealth(playerid,100);
SetPlayerHealth(PlayerDeagle[playerid],100);
SetPlayerArmour(playerid,0);
SetPlayerArmour(PlayerDeagle[playerid],0);
PlayerDeagleStart[playerid] = 1;
PlayerDeagleStart[PlayerDeagle[playerid]] = 1;
SetPlayerPos(playerid,-1443.3085,997.4969,1024.2202);
SetPlayerPos(PlayerDeagle[playerid],-1357.3287,994.5474,1024.0209);
SetPlayerInterior(playerid,15);
SetPlayerInterior(PlayerDeagle[playerid],15);
SetPlayerVirtualWorld(playerid, deaglevirtualworld);
SetPlayerVirtualWorld(PlayerDeagle[playerid], deaglevirtualworld);
PlayerDeagleMoney[PlayerDeagle[playerid]] = PlayerDeagleMoney[playerid];
PlayerDeagle[playerid] = 999;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " ยังไม่มีใครท้าดวล Deagle คุณ !");
return 1;
}
}
|
|