Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (new contador = 0; contador < MAX_PLAYERS; contador++)
- if (IsPlayerInAnyVehicle(contador))
- {
- tmpcar = GetPlayerVehicle(contador);
- Recolocarcoches[tmpcar] = 1;
- }
- if (!strlen(cmd))
- {
- SetTimerEx("Recolocarveh", 100, false, "ii", playerid, 30.0);
- }
- else
- {
- if (strcmp(cmd, "autoescuela", true) == 0)
- {
- for(new i = 0;i < TotalVeh; i++)
- {
- if((strcmp(CarInfo[i][cOwner], "autoescuela", true) == 0) && (Recolocarcoches[i] == 0))
- {
- SetVehiclePos(CarInfo[i][cId], CarInfo[i][cLocationx], CarInfo[i][cLocationy], CarInfo[i][cLocationz]);
- SetVehicleZAngle(CarInfo[i][cId], CarInfo[i][cAngle]);
- //Recolocarcoches[i] = NOEXISTE;
- }
- if(Recolocarcoches[i] == 1)
- {
- Recolocarcoches[i] = 0;
- }
- }
- return 1;
- }
- if (strcmp(cmd, "job", true) == 0)
- {
- cmd = strtokex(cmdtext, idx);
- if(!strlen(cmd))
- {
- SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, 100);
- }
- else
- {
- new id = strval(cmd);
- SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, id+100);
- }
- return 1;
- }
- if (strcmp(cmd, "team", true) == 0)
- {
- cmd = strtokex(cmdtext, idx);
- if(!strlen(cmd))
- {
- SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, 0);
- }
- else
- {
- new id = strval(cmd);
- SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, id);
- }
- return 1;
- }
- }
- return 1;
Add Comment
Please, Sign In to add comment