Quote:
Originally Posted by Jochemd
Well, if you have written the owners name into a variable, you can do it this way (this would be for 'house 1'
pawn Код:
if(!strcmp("/opengate", cmdtext, true)) { if(!strcmp(Ownername[House1],Playername,true)) { SetTimer("OnGateMoveBack",4000,false); // setting a timer to move the gate back MoveObject(blablabla); // Put your info here to move the gate to MoveGateBack[playerid] = 1; // Do not forget to define this. } return 1; }
pawn Код:
forward OnGateMoveBack(); public OnGateMoveBack() { if(MoveGateBack[playerid] == 1) { MoveObject(blabla); // move the object back MoveGateBack[playerid] = 0; } return 1; }
Please note that I have not done something good now by writing almost the whole code. try making it yourself next time and learn these function, and the 'Related Functions'. They're really useful.
|
Thanks i will try it. Thing is , that i've been scripting only week : ).
---
Thanks.
Franklyn.