15.06.2014, 14:50
pawn Code:
public coson(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
flag = 1;
MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10);
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr1, 0, 90, 179.9398);
flag = 2;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr2, 0, 90, 179.9999);
flag = 3;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr3, 0, 90, 179.9398);
flag = 4;
}
return 1;
}
}