SA-MP Forums Archive
hitman unknown - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: hitman unknown (/showthread.php?tid=310346)



hitman unknown - Andr3y9603 - 11.01.2012

I want that to be a hitman spawn pickup and hitmanii to enter it and type a command like / hitmanhide and then instead of his name example Gigel occur Unknown or Anonymous ... Does anyone know how to do? help please


Re: hitman unknown - Snowman12 - 11.01.2012

pawn Код:
/* ================================ 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;
}
Not tested test and get back to me if something is wrong


Re: hitman unknown - Andr3y9603 - 12.01.2012

Quote:

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.

line 21 is
Quote:

#include <zcmd>

I took include of on this site : https://sampforum.blast.hk/showthread.php?tid=91354


Re: hitman unknown - Andr3y9603 - 12.01.2012

Does anyone know?


Re: hitman unknown - ScriptJorkis - 12.01.2012

Make sure you put zcmd.inc in YourServer/pawno/include


Re: hitman unknown - Andr3y9603 - 12.01.2012

we have there


Re: hitman unknown - ScriptJorkis - 12.01.2012

we? or "i"? lol so weird. it works to me so fine


Re: hitman unknown - Andr3y9603 - 12.01.2012

i ))) i am from Romania


Re: hitman unknown - Andr3y9603 - 12.01.2012

someone help?


Re: hitman unknown - Snowman12 - 12.01.2012

Open pawno and then open the file from the pawno. Don't open the file direct.