kapu = CreateObject(koordináta); //ide írod be a ZÁRT helyzetben lévõ kapu koordinátáját /Fontos
{if(strcmp(cmdtext, \"/nyit\", true) == 0) { MoveObject(kapu, IDE nyit koordináta, 2.5); //2,5 a sebesség SendClientMessage(playerid,0xFF9900AA,\"A kaput kinyitottad!\"); return 1; } if(strcmp(cmdtext, \"/zar\", true) == 0) { MoveObject(kapu,IDE zárt koordináta, 2.5); SendClientMessage(playerid,0xFF9900AA,\"A kaput bezártad!\"); return 1; } }
Zárt:[pawn]CreateObject(980, 956.01812744141, -1518.1772460938, 8.0824031829834, 0, 0, 0);CreateObject(980, 956.15386962891, -1503.32421875, 15.321292877197, 0, 0, 0);CreateObject(17324, 2099.5710449219, 1593.7355957031, 9.8203125, 0, 0, 270);CreateObject(980, 2087.6833496094, 1593.7658691406, 12.593704223633, 0, 0, 90);[/pawn]Nyitott:[pawn]CreateObject(980, 956.01812744141, -1518.1772460938, 8.0824031829834, 0, 0, 0);CreateObject(980, 956.15386962891, -1503.32421875, 15.321292877197, 0, 0, 0);CreateObject(17324, 2099.5710449219, 1593.7355957031, 9.8203125, 0, 0, 270);CreateObject(980, 2087.6833496094, 1593.7658691406, 12.593704223633, 0, 0, 90);[/pawn]