22.12.2009, 11:29
Hi, I have this script:
In the first line by colour code:
In OnGameModeInit:
In OnPlayerCommandText:
In Game:
What should I do to go xD?
In the first line by colour code:
Код:
new door; forward outdoor();
Код:
door=CreateObject(1569, 245.791015625, 72.68359375, 1002.640625);
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new giveplayerid, moneys, idx; cmd = strtok(cmdtext, idx); if( !strcmp(cmdtext, "/door", true) ) { MoveObject(door, 0.0000, 0.0000, 111.15942382813); SetTimer("outdoor",5000, false); return 0; }
Код:
Say: /door (in LSPD HQ) Server unknow command.