08.06.2010, 06:14
Код:
} } } } } if(PlayerInfo[i][pCarTime] > 0) { if(PlayerInfo[i][pCarTime] <= 0) { PlayerInfo[i][pCarTime] = 0; } else { PlayerInfo[i][pCarTime] -= 1;
} } } } } if(PlayerInfo[i][pCarTime] > 0) { if(PlayerInfo[i][pCarTime] <= 0) { PlayerInfo[i][pCarTime] = 0; } else { PlayerInfo[i][pCarTime] -= 1;
}
}
}
}
}
if(PlayerInfo[i][pCarTime] > 0)
{
if(PlayerInfo[i][pCarTime] <= 0)
{
PlayerInfo[i][pCarTime] = 0;
}
else
{
PlayerInfo[i][pCarTime] -= 1;
ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
SetPlayerDrunkLevel(i, 10000);
PlayerDrunkTimeLeft += 1;
if(PlayerDrunkTimeLeft == 4)
{
PlayerDrunkTimeLeft = 0;
PlayerDrunk -= 1;
if(PlayerDrunk < 5)
{
GameTextForPlayer(i, "~w~Drunk Effect Has~n~~p~Wore Off", 3500, 1);
SetPlayerDrunkLevel(i, 0);
}
}
}
}
}
if(PlayerInfo[pCarTime] > 0)
{
if(PlayerInfo[pCarTime] <= 0)
{
PlayerInfo[pCarTime] = 0;
}
else
{
PlayerInfo[pCarTime] -= 1;
}
}
public OnPlayerConnect(playerid)
{
GivePlayerMoney(playerid, 2000);
GivePlayerMoney(playerid, 2001);
GivePlayerMoney(playerid, 2002);
return 1;
}
#pragma tabsize 0