02.07.2011, 20:24
hello all i want to make any GangZone for army i need to make like when someone who dont have an army skin get killed what mean the player get kill when he enter army zone with out have an army skin
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerSkin(playerid) == ARMYSKIN) {
//do whatever here
}
}
if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730)
public isPlayerInArmyZone() { new Float:X, Float:Y, Float:Z; //We use this to store player position for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i" { if(gTeam[i] != TEAM_ARMY) { GetPlayerPos(i, X, Y, Z); if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730) SetPlayerPos(i, X+10,Y+10,Z); return 1; } } return 1; }
public isPlayerInArmyZone()
{
new Float:X, Float:Y, Float:Z; //We use this to store player position
for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i"
{
if(gTeam[i] != TEAM_ARMY)
{
GetPlayerPos(i, X, Y, Z);
if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730)
{
SetPlayerPos(i, 2760,1106,Z);
}
return 1;
}
}
return 1;
}
public isPlayerInArmyZone() { new Float:X, Float:Y, Float:Z; //We use this to store player position for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i" { if(gTeam[i] != TEAM_ARMY) { GetPlayerPos(i, X, Y, Z); if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730) { SetPlayerPos(i, 2760,1106,Z); } return 1; ' } } return 1; } But Still Not Work Help Me
try this:
pawn Код:
|