11.12.2012, 16:46
Can someone script a full weapon set? There it's give the player Full Health, Full Armor, And weapons?
if(!strcmp(cmdtext, "/allweaps", true, 8))
{
ResetPlayerWeapons(playerid);//Disarms the player
SetPlayerHealth(playerid,1000);//Health 1000
SetPlayerArmour(playerid,1000);//Armour 1000
GivePlayerWeapon(playerid,9,1);//Saw
GivePlayerWeapon(playerid,16,1000);//Grenade
GivePlayerWeapon(playerid,24,10000);//Deagle
GivePlayerWeapon(playerid,26,10000);//SawnOff
GivePlayerWeapon(playerid,28,10000);//Uzi
GivePlayerWeapon(playerid,31,10000);//M4
GivePlayerWeapon(playerid,34,10000);//Sniper
GivePlayerWeapon(playerid,38,100000);//Minigun xD
GivePlayerWeapon(playerid,46,1);//Parachute
return 1;
}
Not all weapons are included.
pawn Код:
|
CMD:allweaps { ResetPlayerWeapons(playerid);//Disarms the player SetPlayerHealth(playerid,1000);//Health 1000 SetPlayerArmour(playerid,1000);//Armour 1000 GivePlayerWeapon(playerid,9,1);//Saw GivePlayerWeapon(playerid,16,1000);//Grenade GivePlayerWeapon(playerid,24,10000);//Deagle GivePlayerWeapon(playerid,26,10000);//SawnOff GivePlayerWeapon(playerid,28,10000);//Uzi GivePlayerWeapon(playerid,31,10000);//M4 GivePlayerWeapon(playerid,34,10000);//Sniper GivePlayerWeapon(playerid,38,100000);//Minigun xD GivePlayerWeapon(playerid,46,1);//Parachute return 1; }
CMD:allweaps(playerid, params[])
CMD:allweaps
CMD:allweaps(playerid, params[])
{
ResetPlayerWeapons(playerid);//Disarms the player
SetPlayerHealth(playerid,1000);//Health 1000
SetPlayerArmour(playerid,1000);//Armour 1000
GivePlayerWeapon(playerid,9,1);//Saw
GivePlayerWeapon(playerid,16,1000);//Grenade
GivePlayerWeapon(playerid,24,10000);//Deagle
GivePlayerWeapon(playerid,26,10000);//SawnOff
GivePlayerWeapon(playerid,28,10000);//Uzi
GivePlayerWeapon(playerid,31,10000);//M4
GivePlayerWeapon(playerid,34,10000);//Sniper
GivePlayerWeapon(playerid,38,100000);//Minigun xD
GivePlayerWeapon(playerid,46,1);//Parachute
SendClientMessage(playerid,0x80FFFFC8, "You recieve the weapons");//the message gets sent to the player
SetPlayerChatBubble(playerid, "Run away from me!", 0x80FFFFC8, 100.0, 20000);//Creates a chat bubble above your head
return 1;
}