SISTEMA DE PORTÃO - SAMP ANDROID/PC - PAWNO
Código:
#define FILTERSCRIPT
#define AMARELO 0xFFFF00AA
#define VERSAO "1.0.0"
#define NOME "HuemersonFMG"
#define SCRIPTER "HuemersonFMG"
#define FSS "FMG - Concessionária"
#define SITE "familiagarcia-samp.forumeiros.com/forum"
#define SCM SendClientMessage
#define SCMA SendClientMessageToAll
//Variaveis Pos X - Y - Z - acertos
#define V1 "F"
#define V2 "S"
#define V3 "G"
#define V4 "M"
#define V5 "P"
#define V6 "A"
#define V7 "-"
//Variaveis Pos W - P - J - acertos
#define V8 "e"//P
#define V9 "r"//P
#define V10 "n"//P
#define V11 "u"//P
#define V12 "o"//P
#define V13 "H"//G
#define V14 "m"//P
#define V15 "s"//P
#define V20 ""V1""V4""V3""V7""V2""V6""V4""V5""
#define V21 ""V1""V18""V14""V16""
#define V22 ""V17""V16""V18""
#define V23 ""V3""V18""V9""V19""V16""V18""
#define V24 ""V2""V6""V4""V5""
#define V25 ""V21""V22" "V23" - "V24""
#define V26 ""V1""V4""V3""
#include <a_samp>
#include <zcmd>
new portao1;
new portao2;
#if defined FILTERSCRIPT
forward close();
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
}
#endif
public OnGameModeInit()
{
portao1 = CreateObject(980,1590.36975098,-1638.18310547,15.23138046,0.00000000,0.00000000,0.00000000);
portao2 = CreateObject(968,1544.69677734,-1630.78649902,13.07031250,0.00000000,90.00000000,90.00000000);
return 1;
}
CMD:portao(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1590.36975098,-1638.18310547,15.23138046))
MoveObject(portao1,1590.3804931641,-1637.9333496094,9.4813804626465, 2.00);
SetTimer("close", 4000, 0);
SCM (playerid, -1, "{FF0000}["V26" INFO]{FFFFFF}: Portão aberto, vai fechar automaticamente em instantes.");
SCMA(0x00FFFFC8,""V20"");//Portão deverá fechar automático em instantes
if(IsPlayerInRangeOfPoint(playerid, 8, 1544.69677734,-1630.78649902,13.07031250))
MoveObject(portao2,1544.6962890625,-1630.7861328125,12.0703125, 2.00);
SetTimer("close", 4000, 0);
SCM (playerid, -1, "{FF0000}["V26" INFO]{FFFFFF}: Portão aberto, vai fechar automaticamente em instantes.");
SCMA(0x00FFFFC8,""V20"");//Portão deverá fechar automático em instantes
return 1;
}
public close()
{
MoveObject(portao1,1590.36975098,-1638.18310547,15.23138046, 3.00);
MoveObject(portao2,1544.69677734,-1630.78649902,13.07031250, 3.00);
return 1;
}