15.07.2011, 14:41
Quote:
new price; price = strval(tmp); if(price < 1 || price > 100) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then $1, or above $100."); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); /*format(string, sizeof(string), "* You've given a Weapon License to %s.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Instructor %s has given you a Weapon License.",sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); PlayerInfo[giveplayerid][pGunLic] = 1;*/ format(string, sizeof(string), "* You offerd %s to buy weapon license for $%d .", giveplayer, price); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Officer %s wants to sell you weapon license for $%d, (type /accept license) to buy.", sendername, price); SendClientMessage(giveplayerid, COLOR_WHITE, string); LicenseOffer[giveplayerid] = playerid; LicensePrice[giveplayerid] = price; LicenseType[giveplayerid] = 5; return 1; |
Command for give license is: /weplicense Weapon (id) (price)
Yes and when I offer this
and the offered man must do /accept license
It don't work... do you know why? Thanks