28.04.2013, 02:25
bom eu queria que esses cmds ficava assim quando ficar perto do elevador subir com ALT e descer apertando ALT tb
os cmds sao
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;
}
}