[AJUDA]Urgentemente -
Oakley_TwOPaCk - 11.10.2011
Galerб ja procurei no Search e nгo achei nenhum dos sistema que eu quero que sejб bom, tipo queria conseguir um sistema de /contar que apareзa no meio da tela e nгo congele os outros, queria um sistema de /x para desvirar o carro se ele tombar, sistema de /pm Mensagens particular e um sistema de TV para eu ficar veno outro player e /tvoff para sair do TV, nгo quero que criem quero uma ajuda para criar apenas isso se possivel por favor ^^
Obrigado
Re: [AJUDA]Urgentemente -
Nake01 - 11.10.2011
Humm... posso lhe ajudar, quando chegar em casa eu te ajudo, mais antes vocк usa "strcmp" ou "zcmd" ?
Re: [AJUDA]Urgentemente -
Oakley_TwOPaCk - 11.10.2011
strcmp
Re: [AJUDA]Urgentemente -
ceesar90 - 11.10.2011
Search й luxo!
Private message:
http://forum.sa-mp.com/showthread.ph...rivate+Message
http://forum.sa-mp.com/showthread.ph...rivate+Message
Tenta pegar de base jб que quer aprender, daн estuda as funзхes.
Um sistema de /contar que tenho aqui:
pawn Код:
if(strcmp(cmdtext,"/contar",true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
new Float:X, Float:Y, Float:Z;
new pName[30];
if (auts == false)
{
auts = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, "*** %s comeзou a contagem.", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~g~-~y~ 3 ~g~-",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count2",1000,0);
SetTimer("count1",2000,0);
SetTimer("countgo",3000,0);
SetTimer("stop",6000,0);
}
else
{
SendClientMessage(playerid, 0xFF9900AA, "A Contagem jб comeзou!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY,"Vocк nгo estб autorizado a usar essa comando!");
}
}
Estude o cуdigo acima e poderб aprender '-'
Re: [AJUDA]Urgentemente -
Vai_Besta - 11.10.2011
Coloque em seu cmd
pawn Код:
//
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Vocк nгo esta em um veiculo");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
Re: [AJUDA]Urgentemente -
Oakley_TwOPaCk - 23.10.2011
@Nake01 Ajuda ai por favor ?
Re: [AJUDA]Urgentemente -
Laercio - 23.10.2011
Ja te ajudaram , Tenso , Vo pra igreja agr , Entгo nao tem como agr , se precizar de ajuda manda mp , FLW
Re: [AJUDA]Urgentemente -
Oakley_TwOPaCk - 23.10.2011
mais o cmd /contar do menino aew nгo pego =[
Re: [AJUDA]Urgentemente -
lucas_mdr1235 - 23.10.2011
e pq o menino posto o codigo incompleto vc precisa criar as PUBLIC que estгo dentro do site timer
@EDIT
PHP код:
forward CountDown();
new Count = 5;
new CountText[5][5] =
{
"~r~1",
"~r~2",
"~r~3",
"~y~4",
"~g~5"
};
PHP код:
if (strcmp(cmdtext, "/contar", true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3000)
{
if(Count != 5)
{
SendClientMessage(playerid, COLOR_DBLUE, "**** Contador й iniciado!");
CountDown();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "**** Contador jб estб ativado!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD5,"Vocк nгo tem permissгo para usar esse comando!");
}
}
return 1;
}
PHP код:
public CountDown()
{
if (Count > 0)
{
GameTextForAll( CountText[Count-1], 2500, 5);
Count--;
SetTimer("CountDown", 1000, 0);
}
else
{
GameTextForAll("~g~GO!", 2500, 5);
Count = 5;
}
return 1;
}
Virar o carro
@EDIT2
PHP код:
if(strcmp(cmd, "/x", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1000)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid))
{
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo tem permissгo para usar esse comando.");
}
}
return 1;
}