20.07.2011, 05:00
So here are my two commands
The first one works but the second one dosnt. it says gate closing but it dosnt close. Whys that?
Код:
if(strcmp("/Modshopgateopen", cmdtext, true, 10) == 0) { MoveObject(garage, 1694.30664062,758.06933594,15.19236946, 2.0); GameTextForPlayer(playerid, "Garage ~r~opening", 5000, 6); new Float:pX, Float:pY, Float:pZ; PlayerPlaySound(playerid,1057,pX,pY,pZ); return 1; } if(strcmp("/Modshopgateclose", cmdtext, true, 10) == 0) { MoveObject(garage, 1694.30664062,758.06933594,11.65923691, 2.0); GameTextForPlayer(playerid, "Garage ~g~closing", 5000, 6); new Float:pX, Float:pY, Float:pZ; PlayerPlaySound(playerid,1057,pX,pY,pZ); return 1; }