/* ================================ Includes ================================ */
#include <zcmd>
/* ================================ Defines ================================ */
/* ================================ Global Varibles ================================ */
new IsHidden[MAX_PLAYERS];
/* ================================ Stock Functions ================================ */
/* ================================ Forwards ================================ */
/* ================================ Script ================================ */
CMD:hide(playerid,params[])
{
new PlayerName[MAX_PLAYER_NAME];
if(gTeam[playerid] == TEAM_HITMAN)
{
if(IsHidden[playerid] == 0)
{
GetPlayerName(playerid,PlayerName,MAX_PLAYER_NAME);
SetPVarString(playerid,"Name",PlayerName); // Save the players name;
SetPlayerName(playerid,"Unknown");
SendClientMessage(playerid,-1,"You are now hidden");
IsHidden[playerid] = 1;
return 1;
}
if(IsHidden[playerid] == 1)
{
GetPVarString(playerid,"Name",PlayerName,sizeof(PlayerName));
SetPlayerName(playerid,PlayerName);
SendClientMessage(playerid,-1,"You are no longer hidden");
IsHidden[playerid] = 0;
return 1;
}
}
else return SendClientMessage(playerid,-1,"ERROR");
return 1;
}
D:\gta\GFR-ZOne\gamemodes\gf.pwn(21) : fatal error 100: cannot read from file: "zcmd" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#include <zcmd> |