17.08.2013, 16:15
Quote:
Como vo fazer um code completo se й vocк que tem as variaveis?
|
Код:
#include <a_samp> new Portao; //Portгo #if defined FILTERSCRIPT #endif public OnGameModeInit() { Portao = CreateObject(980, 311.70001220703, -1178.1999511719, 82.400001525879, 0.0000000, 0.0000000, 44.0000000); //Portгo return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/ac3", true) ==0) { MoveObject(Portao, 311.70001220703, -1178.1999511719, 86.699996948242, 1, 0.0000000, 0.0000000, 44.0000000); //ABERTO SendClientMessage(playerid, 0x008000C8, "Abrindo portгo da casa 3. Agurade..."); return 1; } if (strcmp(cmdtext, "/fc3", true) ==0) { MoveObject(Portao, 311.70001220703, -1178.1999511719, 82.400001525879, 1, 0.0000000, 0.0000000, 44.0000000); SendClientMessage(playerid, 0xFF211CC8, "Fechando portгo da casa 3. Aguarde..."); return 1; } return 0; }