[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
#2

Simple
Reply
#3

It's not a bad little snippet for your first but you don't use the sscanf include in the code .
Reply
#4

Oh, u right! I've fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)