Jump to content

Question

Posted

Am vrut sa fac sa pot sa deschid si sa inchid un gate cu o comanda, cand dai /opengate nu se intampla nimic dar imi apare Poarta deschisa, cand dau /closegate iarasi nu se intampla nimic dar imi apare Poarta inchisa, acestea sunt liniile:

	gate1 = CreateDynamicObject(971,1577,933.28997802734,13.300000190735,0,0,90); // object (subwaygate) (1)
	return 1;
}

public OnFilterScriptExit()return 1;

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
MoveDynamicObject(gate1, 1577,933.29,13.30, 6, 0, 0, 90);
SendClientMessage(playerid,COLOR_GREEN,"Poarta deschisa");
return 1;
}

if (strcmp("/closegate", cmdtext, true, 10) == 0)
{
MoveDynamicObject(gate1, 1577,933.29,13.30, 13.3, 0, 0, 90);
SendClientMessage(playerid,COLOR_GREEN,"Poarta inchisa");
return 1;
}
return 0;
}

EDIT: Am pus ca poarta sa se bage in pamant cand dai /opengate , oare aceasta sa fie problema ? La compile nu da nicio eroare

BannerZdupp.png

7 answers to this question

Recommended Posts

Posted

Coordonatele sunt asa:

Gate-ul initial:  X:971.1577  Y:933.28997802734  Z:13.300000190735    Rotatie X:0  Rotatie Y:0  Rotatie Z:90

Gate-ul cand e deschis: X:971.1577  Y:933.28997802734  Z:6    Rotatie X:0  Rotatie Y:0  Rotatie Z:90

BannerZdupp.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.