hitman unknown
#1

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

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
Reply
#3

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
Reply
#4

Does anyone know?
Reply
#5

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

we have there
Reply
#7

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

i ))) i am from Romania
Reply
#9

someone help?
Reply
#10

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


Forum Jump:


Users browsing this thread: 3 Guest(s)