Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //====================================[Cinto=========================================
- if(!strcmp(cmdtext, "/cinto", true))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(CintoPlayer[playerid] == 0)
- {
- CintoPlayer[playerid] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Parabéns Você está de Cinto, Agora Está Protegido (/tirarcinto)");
- format(string, sizeof(string), "%s coloca o cinto de segurança.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Você já está de cinto.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"Você não está em um Veiculo");
- }
- return 1;
- }
- //===================================================================
- if(!strcmp(cmdtext, "/tirarcinto", true))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(CintoPlayer[playerid] == 1)
- {
- CintoPlayer[playerid] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Cuidado Você Esta Sem Cinto, Pode Morrer (/cinto)");
- format(string, sizeof(string), "%s retira o cinto de segurança.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Você já está sem cinto.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW,"[BSG] Você não está em um veículo.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement