Alguem coloca esse cmds em Tecla ALT
#1

bom eu queria que esses cmds ficava assim quando ficar perto do elevador subir com ALT e descer apertando ALT tb
os cmds sao

pawn Код:
if (strcmp(cmdtext,"/subirdp", true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "aAdmin") == 1){
MoveDynamicObject(elevadordp,1565.5,-1635.9000244141,27.39999961853,3.0);
SendClientMessage(playerid,0xFFFFFFAA, "[INFO] Subindo o elevador da DP!");
return 1;
}
}
pawn Код:
if (strcmp(cmdtext,"/descerdp", true)==0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "aAdmin") == 1){
MoveDynamicObject(elevadordp,1565.5,-1635.9000244141,12.60000038147,3.0);
SendClientMessage(playerid,0xFFFFFFAA, "[INFO] Descendo o elevador da DP!");
return 1;
}
}
Reply
#2

alguem coloca? tem empregados aki rapaz?

estude

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerKeys


https://sampforum.blast.hk/showthread.php?tid=322645
Reply
#3

Coe mon Estude !!

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)