(HELP) Weapon License /accept license
#1

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
Reply
#2

Please Post in [pawn] and then add the [/pawn with the "]" at the end without the quotes
Reply
#3

pawn Код:
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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)