Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmdtext, "/repararveh", true) == 0) // Comando de Reparar o Veículo
- {
- if(!IsPlayerInAnyVehicle(playerid)) // Se o Player não estiver dentro de um Véiculo
- {
- SendClientMessage(playerid, 0x63AFF00A, "[ERRO] Você não está dentro de um Veículo."); return 1;
- }
- GetPlayerVehicleID(playerid); // Pega o ID do Veiculo que o Player estiver dentro
- RepairVehicle(GetPlayerVehicleID(playerid)); // Repara o Veículo que o Player estiver dentro
- SendClientMessage(playerid, 0x63AFF00A, "Parabéns seu Veículo foi reparado com sucesso.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment