21.10.2009, 14:53
Код:
if(strcmp(cmd, "/holster", true) == 0) { new weaponid; weaponid = GetPlayerWeapon(playerid); SetHolderWeapon(playerid,weaponid); GivePlayerWeapon(playerid,weaponid,0); return 1; }
if(strcmp(cmd, "/holster", true) == 0) { new weaponid; weaponid = GetPlayerWeapon(playerid); SetHolderWeapon(playerid,weaponid); GivePlayerWeapon(playerid,weaponid,0); return 1; }
Originally Posted by Mo3
Код:
if(strcmp(cmd, "/holster", true) == 0) { new weaponid; weaponid = GetPlayerWeapon(playerid); SetHolderWeapon(playerid,weaponid); GivePlayerWeapon(playerid,weaponid,0); return 1; } |
if(strcmp(cmd, "/holster", true) == 0)
{
new weaponid;
weaponid = GetPlayerWeapon(playerid);
if((weaponid >= 1 ) && (weaponid <= 42)) //i dont remember the last weapon id
{
SetHolderWeapon(playerid,weaponid);
GivePlayerWeapon(playerid,weaponid,0);
return 1;
}
}
SetHolderWeapon(playerid,weaponid,ammo)
{
bool:PlayerHolster[playerid][weaponid]=true;
GivePlayerWeapon(playerid,weaponid,ammo);
}
Originally Posted by MenaceX^
I think he meant a function that sets a holster variable to true, something like
pawn Код:
|
Originally Posted by ►Peter Corneile◄ [hugu-hosting.co.uk
]
Quote:
|
Originally Posted by MenaceX^
Quote:
|