[FilterScript] Simple, Godmode or Weapons.
#1

This is my first FS. I hope you will like it.

cmds:
/weaponon
/weaponoff

Код:
// made by Qkac , special thanks to samp wiki :)
#include <a_samp>
#include <zcmd>
	COMMAND:weaponon(playerid, params[])
{
 SendClientMessage(playerid,  0xFFFFFFFF,"Weapons loaded.");
 GivePlayerWeapon(playerid, 26, 500); //shotgun
 GivePlayerWeapon(playerid, 24, 500); //pistol
 GivePlayerWeapon(playerid, 29, 500); //mp5
 SetPlayerHealth (playerid,100.0);
 return 1;
}
COMMAND:weaponoff(playerid, params[])
{
 #define INFINITY	(Float:0x7F800000)
 SendClientMessage(playerid,  0xFFFFFFFF,"Godmode has been actived. Now, you cant use weapons.");
 ResetPlayerWeapons(playerid);
 SetPlayerHealth (playerid,INFINITY);
 return 1;
}
Reply


Messages In This Thread
Simple, Godmode or Weapons. - by qkac1234 - 27.12.2012, 15:54
Re: Simple, Godmode or Weapons. - by Justin Reif - 27.12.2012, 16:01
Re: Simple, Godmode or Weapons. - by [HiC]TheKiller - 27.12.2012, 19:21
Re: Simple, Godmode or Weapons. - by qkac1234 - 12.01.2013, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)