12.04.2010, 22:30
Specs:
[x] Client: SA:MP 0.3a
[x] 1st Server Test: 0.3a r4 (windows)
[x] 2st Server Test: 0.3a r7 (windows)
[x] 3rd Server Test: 0.3a R7 (linux) < NOT TESTED YET, because of the 2 failed attempts on windows.
[x] Pawno includes from 0.3a r4+ +w/ custom includes
[x] OnEnterExitModShop works 100% so ignore it...
_________________________________________________
Okay, before you start going net-Emo on me, first, here is the code i was dealing with (there is more story behind this, but i'll report on now)
http://sa-mp.pastebin.com/qMVEBcFi
or
_________________________________________________
Ok the issue:
When The vehicle enters, gives me the proper notification about entering the correct mod shop.
But When i am looking over the nitro or hydrolics it gives me the " vehicle sprayed blah blah when i haven't"
Selecting the components works ok.
When exiting the mod shop, i once again, get the damn vehicle sprayed thing....
screenshots below:

Resources from:
[x] https://sampwiki.blast.hk/wiki/OnVehicleMod
[x] https://sampwiki.blast.hk/wiki/OnVehicleRespray
[x] https://sampwiki.blast.hk/wiki/OnEnterExitModShop
[br][br]
~ Tenshi & thanks <3
[x] Client: SA:MP 0.3a
[x] 1st Server Test: 0.3a r4 (windows)
[x] 2st Server Test: 0.3a r7 (windows)
[x] 3rd Server Test: 0.3a R7 (linux) < NOT TESTED YET, because of the 2 failed attempts on windows.
[x] Pawno includes from 0.3a r4+ +w/ custom includes
[x] OnEnterExitModShop works 100% so ignore it...
_________________________________________________
Okay, before you start going net-Emo on me, first, here is the code i was dealing with (there is more story behind this, but i'll report on now)
http://sa-mp.pastebin.com/qMVEBcFi
or
Code:
//--- mods and stuff -----------------------------------------------------------
public OnVehicleMod(playerid,vehicleid,componentid)
{
//printf("Vehicle %d was modded by ID %d with the componentid %d",vehicleid,playerid,componentid);
new playerState = GetPlayerState(playerid);
if(/*GetPlayerLevel(playerid) < 3 &&*/ playerState == PLAYER_STATE_DRIVER)
{
new string[128];
format(string, sizeof(string),/* Now the message*/
"CAR MOD REPORT: %s (ID %d) has Modded Vehicle [%d] with the componentid [%d]"
/* now the rest */ ,PlayerName(playerid), playerid, vehicleid, componentid);
SendAdminMessage(string);
return 1;
}
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
//new string[48];
//format(string, sizeof(string), "You sprayed vehicle %d to colors %d and %d!", vehicleid,color1,color2);
//SendClientMessage(playerid, COLOR_GREEN, string);
new playerState = GetPlayerState(playerid);
if(/*GetPlayerLevel(playerid) < 3 &&*/ playerState == PLAYER_STATE_DRIVER)
{
new string[126];
format(string, sizeof(string),/* Now the message*/
"CAR MOD REPORT: %s (ID %d) has sprayed vehicle [%d] to colors [%d] and [%d]"
/* now the rest */,PlayerName(playerid), playerid, vehicleid,color1,color2);
SendAdminMessage(string);
return 1;
}
return 1;
}
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
// if(enterexit == 0) // If enterexit is 0, this means they are exiting
new playerState = GetPlayerState(playerid);
if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 1 && playerState == PLAYER_STATE_DRIVER)
{
new string[126];
format(string, sizeof(string),/* Now the message*/
"CAR MOD REPORT: %s (ID %d) has entered: Transfender (Modding Shops)"
/* now the rest */,PlayerName(playerid), playerid);
SendAdminMessage(string);
return 1;
}
if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 2 && playerState == PLAYER_STATE_DRIVER)
{
new string[126];
format(string, sizeof(string),/* Now the message*/
"CAR MOD REPORT: %s (ID %d) has entered: Loco Low (Modding Shops)"
/* now the rest */,PlayerName(playerid), playerid);
SendAdminMessage(string);
return 1;
}
if(/*GetPlayerLevel(playerid) < 3 &&*/ enterexit == 3 && playerState == PLAYER_STATE_DRIVER)
{
new string[126];
format(string, sizeof(string),/* Now the message*/
"CAR MOD REPORT: %s (ID %d) has entered: Wheel Arch Angels (Modding Shops)"
/* now the rest */,PlayerName(playerid), playerid);
SendAdminMessage(string);
return 1;
}
return 1;
}
// -----------------------------------------------------------------------------
Ok the issue:
When The vehicle enters, gives me the proper notification about entering the correct mod shop.
But When i am looking over the nitro or hydrolics it gives me the " vehicle sprayed blah blah when i haven't"
Selecting the components works ok.
When exiting the mod shop, i once again, get the damn vehicle sprayed thing....
screenshots below:

Resources from:
[x] https://sampwiki.blast.hk/wiki/OnVehicleMod
[x] https://sampwiki.blast.hk/wiki/OnVehicleRespray
[x] https://sampwiki.blast.hk/wiki/OnEnterExitModShop
[br][br]
~ Tenshi & thanks <3

