15.10.2009, 17:37
Help me please.
Edit the code that he inserted in the God Father of modes, this is the gate.
Edit the code that he inserted in the God Father of modes, this is the gate.
Код:
#include <a_samp> new gate; public OnGameModeInit() { gate=CreateObject(980,1534.888428,-1451.337280,15.159267,0,0,0);// return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext,"/open1")) { MoveObject(gate,1541.781616,-1451.446167,15.160513,2.0);// return 1; } if(!strcmp(cmdtext,"/close1")) { MoveObject(gate,1534.888428,-1451.337280,15.159267,2.0);// return 1; } return 0; }