[Ajuda] /reparar - /virar
#8

pawn Код:
if (strcmp("/virar", cmdtext, true, 10) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
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);
return 1;
}
}
reparar:
pawn Код:
if(strcmp(cmdtext, "/reparar", 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") == Mecanico || dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid) == 1){
if(IsPlayerInAnyVehicle(playerid) == 1){
new VehicleID;
format(string, sizeof(string), "(INFO) Mecanico %s(ID: %d) vocк consertou um carro, cobre pelo serviзo.", aname, playerid);
SendClientMessage(playerid, Blue, string);
VehicleID = GetPlayerVehicleID(playerid);
RepairVehicle(VehicleID);
} else {
SendClientMessage(playerid, Vermelho, "(INFO) Vocк nгo estб em um carro para reparar.");
}
}
return 1;
}
Reply


Messages In This Thread
/reparar - /virar - by clerISoN - 14.05.2013, 15:11
Re: /reparar - /virar - by Mteck - 14.05.2013, 15:12
Re: /reparar - /virar - by clerISoN - 14.05.2013, 15:18
Re: /reparar - /virar - by Mteck - 14.05.2013, 15:26
Re: /reparar - /virar - by clerISoN - 14.05.2013, 15:33
Re: /reparar - /virar - by Mteck - 14.05.2013, 15:46
Re: /reparar - /virar - by clerISoN - 14.05.2013, 15:49
Re: /reparar - /virar - by Cromado - 14.05.2013, 15:51
Re: /reparar - /virar - by clerISoN - 14.05.2013, 15:54
Re: /reparar - /virar - by Cromado - 14.05.2013, 15:57

Forum Jump:


Users browsing this thread: 3 Guest(s)