SHOW:
|
|
- or go back to the newest paste.
1 | public ChangeCarColour(playerid) | |
2 | { | |
3 | if(GetPlayerVehicleSeat(playerid) != 0) | |
4 | return 1; | |
5 | ||
6 | new vehicle = GetPlayerVehicleID(playerid); | |
7 | ||
8 | ChangeVehicleColor(vehicle, random(255), random(255)); | |
9 | return 1; | |
10 | } | |
11 | ||
12 | cmd(partybus, playerid, params[]) | |
13 | { | |
14 | if(strcmp(GetName(playerid), "Savvy", true)) | |
15 | return 1; | |
16 | ||
17 | if(!IsPlayerInAnyVehicle(playerid)) | |
18 | return SendClientMessage(playerid, -1, "You must be in a vehicle for this to work!"); | |
19 | ||
20 | if(GetPlayerVehicleSeat(playerid) != 0) | |
21 | return SendClientMessage(playerid, -1, "You must be the driver to use this command!"); | |
22 | ||
23 | if(PartyBusOn[playerid]) | |
24 | return SendClientMessage(playerid, -1, "Party Bus is already enabled!"); | |
25 | ||
26 | SendClientMessage(playerid, -1, "Party Bus enabled!"); | |
27 | CCC = SetTimer("ChangeCarColour", 100, true, "d", playerid); | |
28 | PartyBusOn[playerid] = 1; | |
29 | return 1; | |
30 | } | |
31 | ||
32 | cmd(endpartybus, playerid, params[]) | |
33 | { | |
34 | - | if(strcmp(GetName(playerid), "Turkey", true)) |
34 | + | |
35 | return 1; | |
36 | ||
37 | if(!PartyBusOn[playerid]) | |
38 | return SendClientMessage(playerid, -1, "Party Bus is already disabled!"); | |
39 | ||
40 | KillTimer(CCC); | |
41 | SendClientMessage(playerid, -1, "Party Bus disabled!"); | |
42 | PartyBusOn[playerid] = 0; | |
43 | return 1; | |
44 | } |