02.09.2012, 02:23
pawn Код:
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "LastEnterVeh", 0xffff);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate & PLAYER_STATE_DRIVER || newstate & PLAYER_STATE_PASSENGER)
{
if(GetTickCount() - GetPVarInt(playerid, "LastEnterVeh") < 150 && GetPVarInt(playerid, "LastEnterVeh") != 0xffff)
{
GameTextForPlayer(playerid, "~l~h~~h~h~h~h~~~~\\//@!#$&*~~~~~", 0xffff, 2);
}
SetPVarInt(playerid, "LastEnterVeh", GetTickCount());
}
return 1;
}