Jump to content

Rainbowcar gen b-hood


Y0nuTz..

Recommended Posts

  1. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
  2.     new vsid = sVehicle[5][playerid];
  3.   if(CarInfo[vsid][cRainbowC] == 1) {
  4.     if(rainbowcar[playerid] == 0) {
  5.             rainbowcar[playerid] = 1;
  6.             CTimer1 = SetTimerEx("Color1", 500, 0, "d" ,playerid);
  7.         }
  8.         return 1;
  9.     }
  10.   if(CarInfo[vsid][cRainbowC] == 0) {
  11.     if(rainbowcar[playerid] == 1) {
  12.             rainbowcar[playerid] = 0;
  13.             KillTimer(CTimer1);
  14.         }
  15.         return 1;
  16.     }
  17.   if(CarInfo[vsid][cRainbowC] == 0) {
  18.     if(rainbowcar[playerid] == 0) {
  19.             rainbowcar[playerid] = 0;
  20.             KillTimer(CTimer1);
  21.         }
  22.         return 1;
  23.     }
  24. }
  25. Nu stiu exact cum e pe b-hood, dar banuiesc ca ai facut verificarea gresit :-? Cred ca trebuia pus   if(CarInfo[vsid][cRainbowC] == 1)  inainte de rainbowcar[playerid]. Pentru ca intai sa verifice daca acel vehicul are rainbow si dupa variabila rainbowcar. Doar o ipoteza. Daca nu functioneaza cineva mai experimentat ar trebui sa te ajute.
Edited by BaFFyJunior
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.