Killing in the X Interior or Pos
#1

Hi, me like know code that me serves to that when a player Kill a other player in X interior or Position will appears a message as: "No Kill Please".

Help Please.

Bye.

Sorry for my writing.
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerInterior(killerid) == INTERIORID)
    {
        SendClientMessage(killerid, COLOR_RED, "Don't kill in this interior noooooooooooooob! >:D");
    }
    return 1;
}
Reply
#3

Thanks.

Good Bye.
Reply
#4

Why don't you put
pawn Код:
DisableInteriorWeapons(1);
under OnGameModeInit()?

EDIT:

My BAd Its
Код:
AllowInteriorWeapons(0);
Reply
#5

Quote:
Originally Posted by <Weponz>
Посмотреть сообщение
Why don't you put
pawn Код:
DisableInteriorWeapons(1);
under OnGameModeInit()?

EDIT:

My BAd Its
Код:
AllowInteriorWeapons(0);
Very Good, Thanks.

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerInterior(killerid) == INTERIORID)
    {
        SendClientMessage(killerid, COLOR_RED, "Don't kill in this interior noooooooooooooob! >:D");
    }
    return 1;
}
When I put the code, I not get any error, but when the player killed dies in X interior, the spawn is bug.

Help please
Reply
#6

Quote:
Originally Posted by Master[Pro]
Посмотреть сообщение
Very Good, Thanks.



When I put the code, I not get any error, but when the player killed dies in X interior, the spawn is bug.

Help please
That code shouldn't fuck up with the OnPlayerSpawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)