18.08.2012, 21:45
how would i make it so i dont have to have multiple fs for these barrier's
Everytime i try put them together they fail
i also want to add these to it also
Everytime i try put them together they fail
i also want to add these to it also
pawn Код:
toll2 = CreateDynamicObject(3578, 1808.3000488281, 904.29998779297, 8.8000001907349, 0, 0, 0);
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1805.3916, 895.3129, 9.6173))
{
MoveDynamicObject(toll2, 1808.3000488281, 904.29998779297, 5.3000001907349, 2.5);
SetPVarInt(playerid, "PVarMoney", -5);
GameTextForPlayer(playerid, "~y~$10 Thankyou", 3000, 3);
SetTimerEx("Timer_TollsClose",5000,false,"i", 0);
case 0: MoveDynamicObject(toll2, 1808.3000488281, 904.29998779297, 8.8000001907349, 2.5);
pawn Код:
#include <a_samp>
#include <streamer>
#include <foreach>
#define red 0xFF0000AA
new toll1;
forward Tolls();
forward Timer_TollsClose(tollid);
public OnFilterScriptInit()
{
toll1 = CreateDynamicObject(3578, 1786.1999511719, 894.29998779297, 9.1999998092651, 0, 0, 0);
SetTimer("Tolls", 1500, true);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public Tolls()
{
foreach(Player, playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1787.7653, 906.1887, 9.2627))
{
MoveDynamicObject(toll1, 1786.1999511719, 894.29998779297, 7.4000000953674, 2.5);
SetPVarInt(playerid, "PVarMoney", -5);
GameTextForPlayer(playerid, "~y~$10 Thankyou", 3000, 3);
SetTimerEx("Timer_TollsClose",5000,false,"i", 0);
}
}
}
public Timer_TollsClose(tollid)
{
switch(tollid)
{
case 0: MoveDynamicObject(toll1, 1786.1999511719, 894.29998779297, 9.1999998092651, 2.5);
}
}