22.01.2013, 14:53
Gates doesn't open or close. Where can be problem?
Код:
vartai = CreateDynamicObject(2990,-1530.3000488,482.5000000,10.1000004,0.0000000,0.0000000,179.9945068);
Код:
if( PRESSED( KEY_HANDBRAKE )) if(GetPVarInt(playerid, "Vartai") == 0) //Jei vartai uюdaryti { MoveDynamicObject(vartai, -1540.3000488,482.5000000,10.1000004, 3); // Patraukiam objekta SetPVarInt(playerid, "Vartai", 1); //Padarom vartus atidarytus SendClientMessage(playerid, -1, " Vartai atidaryti"); //Nusiunиiam юinute? } else if(GetPVarInt(playerid, "Vartai") == 1) //Jei vartai atidaryti { MoveDynamicObject(vartai, -1530.3000488,482.5000000,10.1000004, 3); // Patraukiam objekta SetPVarInt(playerid, "Vartai", 0); //Padarom vartus uюdarytus SendClientMessage(playerid, -1, " Vartai uюdaryti"); //Nusiunиiam юinute?