12.05.2009, 01:17
I cant script for shit, so dont take much advice from me but I think you would need something like this, I suck at editing others players games dont feel like learning their functions would rather build it myself.
Sellgun(int playerid, gun[])
{
int guncheck = 0; /// this would actually have to be a global to all of the what ever there called like onconnect disconnect. and then u would need to do a check for like each if(playergetgun)
string mp5 = ///id of it;
/// and so on.
if(playermats[id] < gun[])
{
GivePlayerGun(playerid)
//radius check
if(guncheck[id] != 1)
{
sendclientmessage("You cannot get this gun");
}
{
Or something like that.
Sellgun(int playerid, gun[])
{
int guncheck = 0; /// this would actually have to be a global to all of the what ever there called like onconnect disconnect. and then u would need to do a check for like each if(playergetgun)
string mp5 = ///id of it;
/// and so on.
if(playermats[id] < gun[])
{
GivePlayerGun(playerid)
//radius check
if(guncheck[id] != 1)
{
sendclientmessage("You cannot get this gun");
}
{
Or something like that.