Advertisement
LePtitClown

Plume

Dec 16th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3.  
  4.     if (strcmp("/JobBus", cmdtext, true, 10) == 0)
  5.         {
  6.         new vID = GetPlayerVehicleID(playerid);
  7.         if(GetVehicleModel(vID)== 431 || GetVehicleModel(vID)== 437)
  8.         {
  9.             if(GetPlayerTeam(playerid) == 6)
  10.             {
  11.                 ConducB[playerid] = 0;
  12.                 SendClientMessage(playerid, 0xFFFF00AA, "Tu a commencé une la ligne !");
  13.                 SetPlayerSkin(playerid,155);
  14.                 return 1;
  15.             }
  16.         }
  17.         else
  18.         {
  19.             SendClientMessage(playerid, 0xFFFF00AA,"Tu na pas le bon vehicule pour faire la ligne !");
  20.             return 1;
  21.         }
  22.     }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement