21.11.2010, 22:47
(
Последний раз редактировалось Buzzbomb; 21.11.2010 в 22:57.
)
LOL alot of {{{{{{ hehe
oops bad command it buy u a gun not let you select Haa got robbed 2500 for a deagle.. Hold on ill fixer her up right..
pawn Код:
if(strcmp("/buygun", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,308.0848,-141.4177,999.6016))
{
SendClientMessage(playerid, BLUE, "------Ammunation------");
SendClientMessage(playerid, WHITE, "Deagle - $2500");
SendClientMessage(playerid, WHITE, "Shotgun - $1500");
SendClientMessage(playerid, WHITE, "Colt45 - $1000");
SendClientMessage(playerid, BLUE, "--Legalized Gun Shop--");
}
new idx;
new cmd[128];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd,"Deagle"))
{
GetPlayerMoney(playerid);
GivePlayerMoney(playerid,-2500);
GivePlayerWeapon(playerid, 24, 10);
}
else if(strcmp(cmd,"Shotgun"))
{
GetPlayerMoney(playerid);
GivePlayerMoney(playerid,-1500);
GivePlayerWeapon(playerid, 25, 15);
}
else if(strcmp(cmd,"Colt45"))
{
GetPlayerMoney(playerid);
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 22, 50);
}
}