17.05.2011, 10:56
heey all,
I made a weapondealer who can make a shop.
And if the player is in shop who want to buy gives money to the dealer but how can i do that?
Its something with Setpvarint but at the command for shop i dont have another playerid(ID) only one playerid
Pls help
thanks admigo
I made a weapondealer who can make a shop.
And if the player is in shop who want to buy gives money to the dealer but how can i do that?
Код:
if(armshop[playerid]==1) { if(IsPlayerConnected(GetPVarInt(playerid, "arm1")) && GetPVarType(playerid, "copTicket") != 0) { GivePlayerMoney(GetPVarInt(playerid, "arm1"), SkillPrice[playerid]); DeletePVar(playerid, "arm1"); } GivePlayerWeapon(playerid,33,1000); }
Pls help
thanks admigo