Yossef_Jones

code

May 15th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3.         CMD:Toys(playerid, params[])
  4.     {
  5.         new carid = GetPlayerVehicleID(playerid);
  6.         if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need to attach a trailer!!!");
  7.         if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
  8.         {
  9.             ToysJob[playerid] = 1;
  10.             new name[MAX_PLAYER_NAME], string[90];
  11.             GetPlayerName(playerid, name, sizeof(name));
  12.             format(string, sizeof(string), "* %s Distribute Toys.", name );
  13.             SendClientMessageToAll(COLOR_AQUA, string);
  14.             SetPlayerCheckpoint(playerid,1389.2355,-1648.4885,13.0308 ,4);
  15.             SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points Red on mapa!");
  16.             SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer *!");
  17.             return 1;
  18.         }
  19.         SendClientMessage(playerid, COLOR_RED,"Only Toys car Start jobs!");
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment