Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/clignotantgauche", true) == 0 || strcmp(cmd, "/cg", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result) && IsPlayerInAnyVehicle(playerid) == 0)
- { //line 124
- SendClientMessage(playerid, COLOR_GRAD2, "Vous devez être dans un véhicule pour utiliser /clignotantgauche");
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "Vous mettez votre clignotant gauche !");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "** %s met son clignotant gauche..", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- printf("%s", string);
- }
- return 1;
- }
- //----------------------------------[CLIGNOTANT:DROITE]----------------------------------------
- if(strcmp(cmd, "/clignotantdroit", true) == 0 || strcmp(cmd, "/cd", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result) && IsPlayerInAnyVehicle(playerid) == 0)
- { //line 124
- SendClientMessage(playerid, COLOR_GRAD2, "Vous devez être dans un véhicule pour utiliser /clignotantdroit");
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "Vous mettez votre clignotant droit !");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s met son clignotant droit..", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- printf("%s", string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement