[HELP] Expression has no effect fast fast
#10

the complete script is:
PHP Code:
public coson(playerid)
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerInRangeOfPoint(i8.03623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(i,"[cos")&& flag == 0)
        {
            
flag 1;
            
MoveDynamicObject(c3623.00293, -338.803591310);
        }
        if(
IsPlayerInRangeOfPoint(i8.03632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
        {
            
SetDynamicObjectRot(tr1090179.9398);
            
flag 2;
        }
        if(
IsPlayerInRangeOfPoint(i8.03674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
        {
            
SetDynamicObjectRot(tr2090179.9999);
            
flag 3;
        }
        if(
IsPlayerInRangeOfPoint(i8.03716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
        {
            
SetDynamicObjectRot(tr3090179.9398);
            
flag 4;
        }
        return 
1;
    }
    return 
0;
}
public 
cosoff(playerid)
{
for(new 
0MAX_PLAYERSi++)
{
if(!
IsPlayerInRangeOfPoint(playerid8.03623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(playerid,"[cos")&& flag == 1)
{
flag 0;
MoveDynamicObject(c3623.00293, -338.803597.5884710);
}
if(!
IsPlayerInRangeOfPoint(playerid8.03632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 2)
{
flag 0;
SetDynamicObjectRot(tr100179.9398);
}
if(!
IsPlayerInRangeOfPoint(playerid8.03674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 3)
{
flag 0;
SetDynamicObjectRot(tr200179.9999);
}
if(!
IsPlayerInRangeOfPoint(playerid8.03716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 4)
{
flag 0;
SetDynamicObjectRot(tr300179.9398);
}
return 
1;
}
return 
0;

and isn't work with all player, help me!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)