01.03.2017, 19:18
PHP код:
CMD:RazorGs2(playerid)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo como motorista.");
RazorTunaPraMim(GetPlayerVehicleID(playerid));
return 1;
}
stock RazorTunaPraMim(vehicleid)
{
ChangeVehicleColor(vehicleid, PVA(), PVA());
new rdn01 = random(5);
switch(rdn01)
{
case 0:ChangeVehiclePaintjob(vehicleid,0);
case 1:ChangeVehiclePaintjob(vehicleid,1);
case 2:ChangeVehiclePaintjob(vehicleid,2);
case 3:ChangeVehiclePaintjob(vehicleid,3);
case 4:ChangeVehiclePaintjob(vehicleid,4);
}
new rdn02 = random(24);
switch(rdn02)
{
case 0:AddVehicleComponent(vehicleid,1034);
case 1:AddVehicleComponent(vehicleid,1046);
case 2:AddVehicleComponent(vehicleid,1065);
case 3:AddVehicleComponent(vehicleid,1064);
case 4:AddVehicleComponent(vehicleid,1028);
case 5:AddVehicleComponent(vehicleid,1089);
case 6:AddVehicleComponent(vehicleid,1037);
case 7:AddVehicleComponent(vehicleid,1045);
case 8:AddVehicleComponent(vehicleid,1066);
case 9:AddVehicleComponent(vehicleid,1059);
case 10:AddVehicleComponent(vehicleid,1029);
case 11:AddVehicleComponent(vehicleid,1092);
case 12:AddVehicleComponent(vehicleid,1044);
case 13:AddVehicleComponent(vehicleid,1126);
case 14:AddVehicleComponent(vehicleid,1129);
case 15:AddVehicleComponent(vehicleid,1104);
case 16:AddVehicleComponent(vehicleid,1113);
case 17:AddVehicleComponent(vehicleid,1136);
case 18:AddVehicleComponent(vehicleid,1043);
case 19:AddVehicleComponent(vehicleid,1127);
case 20:AddVehicleComponent(vehicleid,1132);
case 21:AddVehicleComponent(vehicleid,1105);
case 22:AddVehicleComponent(vehicleid,1114);
case 23:AddVehicleComponent(vehicleid,1135);
}
new rdn03 = random(24);
switch(rdn03)
{
case 0:AddVehicleComponent(vehicleid,1171);
case 1:AddVehicleComponent(vehicleid,1153);
case 2:AddVehicleComponent(vehicleid,1160);
case 3:AddVehicleComponent(vehicleid,1155);
case 4:AddVehicleComponent(vehicleid,1169);
case 5:AddVehicleComponent(vehicleid,1166);
case 6:AddVehicleComponent(vehicleid,1172);
case 7:AddVehicleComponent(vehicleid,1152);
case 8:AddVehicleComponent(vehicleid,1173);
case 9:AddVehicleComponent(vehicleid,1157);
case 10:AddVehicleComponent(vehicleid,1170);
case 11:AddVehicleComponent(vehicleid,1165);
case 12:AddVehicleComponent(vehicleid,1174);
case 13:AddVehicleComponent(vehicleid,1179);
case 14:AddVehicleComponent(vehicleid,1189);
case 15:AddVehicleComponent(vehicleid,1182);
case 16:AddVehicleComponent(vehicleid,1115);
case 17:AddVehicleComponent(vehicleid,1191);
case 18:AddVehicleComponent(vehicleid,1175);
case 19:AddVehicleComponent(vehicleid,1185);
case 20:AddVehicleComponent(vehicleid,1188);
case 21:AddVehicleComponent(vehicleid,1181);
case 22:AddVehicleComponent(vehicleid,1116);
case 23:AddVehicleComponent(vehicleid,1190);
}
new rdn04 = random(25);
switch(rdn04)
{
case 1:AddVehicleComponent(vehicleid,1149);
case 2:AddVehicleComponent(vehicleid,1150);
case 3:AddVehicleComponent(vehicleid,1159);
case 4:AddVehicleComponent(vehicleid,1154);
case 5:AddVehicleComponent(vehicleid,1141);
case 6:AddVehicleComponent(vehicleid,1168);
case 7:AddVehicleComponent(vehicleid,1148);
case 8:AddVehicleComponent(vehicleid,1151);
case 9:AddVehicleComponent(vehicleid,1161);
case 10:AddVehicleComponent(vehicleid,1156);
case 11:AddVehicleComponent(vehicleid,1140);
case 12:AddVehicleComponent(vehicleid,1167);
case 13:AddVehicleComponent(vehicleid,1176);
case 14:AddVehicleComponent(vehicleid,1180);
case 15:AddVehicleComponent(vehicleid,1187);
case 16:AddVehicleComponent(vehicleid,1184);
case 17:AddVehicleComponent(vehicleid,1109);
case 18:AddVehicleComponent(vehicleid,1192);
case 19:AddVehicleComponent(vehicleid,1177);
case 20:AddVehicleComponent(vehicleid,1178);
case 21:AddVehicleComponent(vehicleid,1186);
case 22:AddVehicleComponent(vehicleid,1183);
case 23:AddVehicleComponent(vehicleid,1110);
case 24:AddVehicleComponent(vehicleid,1193);
}
new rdn05 = random(16);
switch(rdn05)
{
case 0:AddVehicleComponent(vehicleid,1035);
case 1:AddVehicleComponent(vehicleid,1054);
case 2:AddVehicleComponent(vehicleid,1067);
case 3:AddVehicleComponent(vehicleid,1055);
case 4:AddVehicleComponent(vehicleid,1032);
case 5:AddVehicleComponent(vehicleid,1088);
case 6:AddVehicleComponent(vehicleid,1035);
case 7:AddVehicleComponent(vehicleid,1053);
case 8:AddVehicleComponent(vehicleid,1068);
case 9:AddVehicleComponent(vehicleid,1061);
case 10:AddVehicleComponent(vehicleid,1033);
case 11:AddVehicleComponent(vehicleid,1091);
case 12:AddVehicleComponent(vehicleid,1130);
case 13:AddVehicleComponent(vehicleid,1128);
case 14:AddVehicleComponent(vehicleid,1131);
case 15:AddVehicleComponent(vehicleid,1103);
}
new rdn06 = random(12);
switch(rdn06)
{
case 0:AddVehicleComponent(vehicleid,1147);
case 1:AddVehicleComponent(vehicleid,1049);
case 2:AddVehicleComponent(vehicleid,1162);
case 3:AddVehicleComponent(vehicleid,1158);
case 4:AddVehicleComponent(vehicleid,1138);
case 5:AddVehicleComponent(vehicleid,1164);
case 6:AddVehicleComponent(vehicleid,1146);
case 7:AddVehicleComponent(vehicleid,1150);
case 8:AddVehicleComponent(vehicleid,1158);
case 9:AddVehicleComponent(vehicleid,1060);
case 10:AddVehicleComponent(vehicleid,1139);
case 11:AddVehicleComponent(vehicleid,1163);
}
new rdn07 = random(20);
switch(rdn07)
{
case 0:{
AddVehicleComponent(vehicleid,1036);
AddVehicleComponent(vehicleid,1040);}
case 1:{
AddVehicleComponent(vehicleid,1047);
AddVehicleComponent(vehicleid,1051);}
case 2:{
AddVehicleComponent(vehicleid,1069);
AddVehicleComponent(vehicleid,1071);}
case 3:{
AddVehicleComponent(vehicleid,1056);
AddVehicleComponent(vehicleid,1062);}
case 4:{
AddVehicleComponent(vehicleid,1026);
AddVehicleComponent(vehicleid,1027);}
case 5:{
AddVehicleComponent(vehicleid,1090);
AddVehicleComponent(vehicleid,1094);}
case 6:{
AddVehicleComponent(vehicleid,1039);
AddVehicleComponent(vehicleid,1041);}
case 7:{
AddVehicleComponent(vehicleid,1048);
AddVehicleComponent(vehicleid,1052);}
case 8:{
AddVehicleComponent(vehicleid,1070);
AddVehicleComponent(vehicleid,1072);}
case 9:{
AddVehicleComponent(vehicleid,1057);
AddVehicleComponent(vehicleid,1063);}
case 10:{
AddVehicleComponent(vehicleid,1031);
AddVehicleComponent(vehicleid,1030);}
case 11:{
AddVehicleComponent(vehicleid,1093);
AddVehicleComponent(vehicleid,1095);}
case 12:{
AddVehicleComponent(vehicleid,1042);
AddVehicleComponent(vehicleid,1099);}
case 13:{
AddVehicleComponent(vehicleid,1102);
AddVehicleComponent(vehicleid,1133);}
case 14:{
AddVehicleComponent(vehicleid,1134);
AddVehicleComponent(vehicleid,1137);}
case 15:{
AddVehicleComponent(vehicleid,1108);
AddVehicleComponent(vehicleid,1107);}
case 16:{
AddVehicleComponent(vehicleid,1122);
AddVehicleComponent(vehicleid,1101);}
case 17:{
AddVehicleComponent(vehicleid,1106);
AddVehicleComponent(vehicleid,1124);}
case 18:{
AddVehicleComponent(vehicleid,1118);
AddVehicleComponent(vehicleid,1120);}
case 19:{
AddVehicleComponent(vehicleid,1119);
AddVehicleComponent(vehicleid,1121);}
}
new rdn08 = random(14);
switch(rdn08)
{
case 0:AddVehicleComponent(vehicleid,1100);
case 1:AddVehicleComponent(vehicleid,1123);
case 2:AddVehicleComponent(vehicleid,1125);
case 3:AddVehicleComponent(vehicleid,1117);
case 4:AddVehicleComponent(vehicleid,1025);
case 5:AddVehicleComponent(vehicleid,1074);
case 6:AddVehicleComponent(vehicleid,1076);
case 7:AddVehicleComponent(vehicleid,1078);
case 8:AddVehicleComponent(vehicleid,1081);
case 9:AddVehicleComponent(vehicleid,1082);
case 10:AddVehicleComponent(vehicleid,1085);
case 11:AddVehicleComponent(vehicleid,1096);
case 12:AddVehicleComponent(vehicleid,1097);
case 13:AddVehicleComponent(vehicleid,1098);
}
new rdn09 = random(13);
switch(rdn09)
{
case 0:AddVehicleComponent(vehicleid, 1073);
case 1:AddVehicleComponent(vehicleid, 1074);
case 2:AddVehicleComponent(vehicleid, 1075);
case 3:AddVehicleComponent(vehicleid, 1076);
case 4:AddVehicleComponent(vehicleid, 1077);
case 5:AddVehicleComponent(vehicleid, 1078);
case 6:AddVehicleComponent(vehicleid, 1079);
case 7:AddVehicleComponent(vehicleid, 1080);
case 8:AddVehicleComponent(vehicleid, 1081);
case 9:AddVehicleComponent(vehicleid, 1082);
case 10:AddVehicleComponent(vehicleid, 1083);
case 11:AddVehicleComponent(vehicleid, 1084);
case 12:AddVehicleComponent(vehicleid, 1085);
}
AddVehicleComponent(vehicleid, 1086);
AddVehicleComponent(vehicleid, 1087);
return 1;
}
stock PVA()
{
new aleat = random(20);
if(aleat == 0) return 159;
if(aleat == 1) return 152;
if(aleat == 2) return 144;
if(aleat == 3) return 237;
if(aleat == 4) return 240;
if(aleat == 5) return 101;
if(aleat == 6) return 121;
if(aleat == 7) return 151;
if(aleat == 8) return 147;
if(aleat == 9) return 605;
if(aleat == 10) return 158;
if(aleat == 11) return 152;
if(aleat == 12) return 0;
if(aleat == 13) return 1;
if(aleat == 14) return 166;
if(aleat == 15) return 278;
if(aleat == 16) return 288;
if(aleat == 17) return 6;
if(aleat == 18) return 398;
if(aleat == 19) return 643;
return 1;
}