18.03.2010, 22:21
How do i make this work for just skin 20. i used GetPlayerSkin so the skin function is:
if(Skin==20);
public boatgate2timer()
{
new boatgate2status;
for(new i1;i1<MAX_PLAYERS;i1++)
{
if(!IsPlayerConnected(i1)) continue;
/* You would only use this if you're using SA-MP v0.2x or lower
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z))c_gate_status = 1;
*/
if(IsPlayerInRangeOfPoint(i1,5,-2468.371338, 1547.240723, 24.030167))boatgate2status = 1;
}
if(boatgate2status)MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209,1);
else MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 1);
return 1;
}
if(Skin==20);
public boatgate2timer()
{
new boatgate2status;
for(new i1;i1<MAX_PLAYERS;i1++)
{
if(!IsPlayerConnected(i1)) continue;
/* You would only use this if you're using SA-MP v0.2x or lower
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z))c_gate_status = 1;
*/
if(IsPlayerInRangeOfPoint(i1,5,-2468.371338, 1547.240723, 24.030167))boatgate2status = 1;
}
if(boatgate2status)MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209,1);
else MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 1);
return 1;
}