23.04.2012, 15:53
Thanks Yuryfury
@Ballu Mia yap, you're the best
PHP код:
new DesertEagle[MAX_PLAYERS];
CMD:buydeagle(playerid, params[])
{
DesertEagle[playerid]=1;
SendClientMessage(playerid,COLOR_RED,"You bought Desert Eagle.");
GivePlayerMoney(playerid,-2000);
return 1;
}
CMD:buyammo(playerid, params[])
{
if(GetPlayerWeapon(playerid)==24||DesertEagle[playerid]==1)
{
GivePlayerWeapon(playerid,24,7);
GivePlayerMoney(playerid,-100);
SendClientMessage(playerid,COLOR_RED,"You bought 1 pack ammo of Desert Eagle.");
}
else SendClientMessage(playerid,COLOR_RED,"You don't have Desert Eagle!");
return 1;
}