SampSharp
SampSharp
SampSharp.GameMode.World
BasePlayer Class
BasePlayer Methods
ApplyAnimation Method
Ban Method
CancelEdit Method
CancelSelectTextDraw Method
ClearAnimations Method
CreateExplosion Method
CreateExplosionForAll Method
DisableCheckpoint Method
DisableRaceCheckpoint Method
DisableRemoteVehicleCollisions Method
DoEditAttachedObject Method
EnablePlayerCameraTarget Method
EnableStuntBonus Method
ForceClassSelection Method
GameText Method
GameTextForAll Method
GetAnimationName Method
GetDistanceFromPoint Method
GetKeys Method
GetLastShot Method
GetTime Method
GetWeaponData Method
GiveMoney Method
GiveWeapon Method
InterpolateCameraLookAt Method
InterpolateCameraPosition Method
IsAttachedObjectSlotUsed Method
IsInRangeOfPoint Method
IsInVehicle Method
IsPlayerStreamedIn Method
Kick Method
OnCancelClickTextDraw Method
OnCleanup Method
OnClickMap Method
OnClickPlayer Method
OnClickPlayerTextDraw Method
OnClickTextDraw Method
OnCommandText Method
OnConnected Method
OnDeath Method
OnDialogResponse Method
OnDisconnected Method
OnEditAttachedObject Method
OnEditGlobalObject Method
OnEditPlayerObject Method
OnEnterCheckpoint Method
OnEnterExitModShop Method
OnEnterRaceCheckpoint Method
OnEnterVehicle Method
OnExitedMenu Method
OnExitVehicle Method
OnGiveDamage Method
OnInteriorChanged Method
OnKeyStateChanged Method
OnLeaveCheckpoint Method
OnLeaveRaceCheckpoint Method
OnPickUpPickup Method
OnRequestClass Method
OnRequestSpawn Method
OnSelectedMenuRow Method
OnSelectGlobalObject Method
OnSelectPlayerObject Method
OnSpawned Method
OnStateChanged Method
OnStreamIn Method
OnStreamOut Method
OnTakeDamage Method
OnText Method
OnUpdate Method
OnWeaponShot Method
PlayAudioStream Method
PlayCrimeReport Method
PlaySound Method
PutCameraBehindPlayer Method
PutInVehicle Method
RemoveAttachedObject Method
RemoveFromVehicle Method
RemoveMapIcon Method
ResetMoney Method
ResetWeapons Method
SelectTextDraw Method
SendClientMessage Method
SendClientMessageToAll Method
SendDeathMessage Method
SendDeathMessageToAll Method
SendPlayerMessageToAll Method
SendPlayerMessageToPlayer Method
SetAmmo Method
SetArmedWeapon Method
SetAttachedObject Method
SetCameraLookAt Method
SetChatBubble Method
SetCheckpoint Method
SetMapIcon Method
SetPlayerMarker Method
SetPositionFindZ Method
SetRaceCheckpoint Method
SetShopName Method
SetSkillLevel Method
SetSpawnInfo Method
SetTime Method
SetWeather Method
SetWorldBounds Method
ShowNameTagForPlayer Method
Spawn Method
SpectatePlayer Method
SpectateVehicle Method
StartRecordingPlayerData Method
StopAudioStream Method
StopRecordingPlayerData Method
ToggleClock Method
ToggleControllable Method
ToggleSpectating Method
BasePlayer
GiveWeapon Method
Give this
BasePlayer
a
Weapon
with a specified amount of ammo.
Namespace:
SampSharp.GameMode.World
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
virtual
void
GiveWeapon
(
Weapon
weapon
,
int
ammo
)
Parameters
weapon
Type:
SampSharp.GameMode.Definitions
Weapon
The Weapon to give to this Player.
ammo
Type:
System
Int32
The amount of ammo to give to this Player.
See Also
Reference
BasePlayer Class
SampSharp.GameMode.World Namespace