Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:pojas(playerid, params[], help)
- {
- if(IsPlayerInAnyVehicle(playerid) == 0)
- {
- SendClientMessage(playerid, -1, "Morate biti u vozilu da bi ste koristili ovu komandu!");
- return 1;
- }
- new string[50 + MAX_PLAYER_NAME];
- if(IsPlayerInAnyVehicle(playerid) == 1 && SeatbeltStatus[playerid] == 0)
- {
- SeatbeltStatus[playerid] = 1;
- {
- format(string,sizeof(string), "*%s stavlja pojas.", GetName(playerid), params);
- ProxDetector(20.0, playerid, string, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA);
- SendClientMessage(playerid, COLOR_WHITE, "Stavio si pojas.");
- }
- }
- else if(IsPlayerInAnyVehicle(playerid) == 1 && SeatbeltStatus[playerid] == 1)
- {
- SeatbeltStatus[playerid] = 0;
- {
- format(string,sizeof(string), "*%s skida pojas.", GetName(playerid), params);
- ProxDetector(20.0, playerid, string, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA);
- SendClientMessage(playerid, COLOR_WHITE, "Skinuo si pojas");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement