COMMAND:challange(playerid, params[]) { if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example) { SetPlayerVirtualWorld(playerid, 1); PutPlayerInVehicle(playerid, 411, 0); // when the player is at bigjump 1, do this } if( IsPlayerInRangeOfPoint( playerid, 7.0, 1946.0314, -1921.3646, 584.5061 ) ) // change the '4, 5, 6' to the coords for bigjump 2 (example) { SetPlayerVirtualWorld(playerid, 2); PutPlayerInVehicle(playerid, 411, 0); } if( IsPlayerInRangeOfPoint( playerid, 7.0, 2312.9204, 986.5928, 501.5012 ) ) // change the '7, 8, 9' to the coords for driftplace 137 (example) { SetPlayerVirtualWorld(playerid, 3); PutPlayerInVehicle(playerid, 411, 0); } return 1; }
The only problem i think i will have with that is if 2 or 3 people do the challange at the same time they will lose there vehicle if im not mistaken?
|
C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(96) : error 017: undefined symbol "vehicleid" C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(98) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(101) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(104) : error 010: invalid function or declaration C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(109) : error 010: invalid function or declaration C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(114) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
COMMAND:challange(playerid, params[]) { if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example) { if(GetVehicleModel(vehicleid) == 411) // 411 is the infernus model SetPlayerVirtualWorld(playerid, 1); PutPlayerInVehicle(playerid, 411, 0); } else SendClientMessage(playerid, 0xFFFFFFFF, "You need to be in a Infernus type /inf to get one.!"); return 1; // when the player is at bigjump 1, do this } if( IsPlayerInRangeOfPoint( playerid, 7.0, 1946.0314, -1921.3646, 584.5061 ) ) // change the '4, 5, 6' to the coords for bigjump 2 (example) { SetPlayerVirtualWorld(playerid, 2); PutPlayerInVehicle(playerid, 411, 0); } if( IsPlayerInRangeOfPoint( playerid, 7.0, 2312.9204, 986.5928, 501.5012 ) ) // change the '7, 8, 9' to the coords for driftplace 137 (example) { SetPlayerVirtualWorld(playerid, 3); PutPlayerInVehicle(playerid, 411, 0); } return 1; }
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{ // 411 is the infernus model
SetPlayerVirtualWorld(playerid, 1);
PutPlayerInVehicle(playerid, 411, 0);
}
COMMAND:challange(playerid, params[]) { if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)// 411 is the infernus model SetPlayerVirtualWorld(playerid, 1); PutPlayerInVehicle(playerid, 411, 0); return 1; }
C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(100) : warning 217: loose indentation C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(100) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(100) : error 004: function "OnPlayerEnterVehicle" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(105) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(105) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(105) : error 004: function "OnPlayerExitVehicle" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(110) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(110) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(110) : error 004: function "OnPlayerStateChange" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(115) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(115) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(115) : error 004: function "Streamer_OnPlayerEnterCP" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(120) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(120) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(120) : error 004: function "Streamer_OnPlayerLeaveCP" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(125) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(125) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(125) : error 004: function "Streamer_OnPlayerEnterRaceCP" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(130) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(130) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(130) : error 004: function "Streamer_OnPlayerLeaveRaceCP" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(135) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(135) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(135) : error 004: function "OnRconCommand" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(140) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(140) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(140) : error 004: function "OnPlayerRequestSpawn" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(145) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(145) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(145) : error 004: function "OnObjectMoved" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(150) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(150) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(150) : error 004: function "OnPlayerObjectMoved" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(155) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(155) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(155) : error 004: function "Streamer_OnPlayerPickUpPickup" is not implemented C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(160) : warning 225: unreachable code C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(160) : error 029: invalid expression, assumed zero C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(160) : error 004: function "OnVehicleMod" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
COMMAND:challange(playerid, params[])
{
if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)// 411 is the infernus model
{
SetPlayerVirtualWorld(playerid, 1);
PutPlayerInVehicle(playerid, 411, 0);
}
}
return 1;
}
new cars[] = { 411 };
COMMAND:challange(playerid, params[]) { if( IsPlayerInRangeOfPoint( playerid, 7.0, 1017.3148, -929.1449, 420.1316 ) ) // change the '1, 2, 3' to the coords for bigjump 1 (example) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)// 411 is the infernus model { SetPlayerVirtualWorld(playerid, 1); PutPlayerInVehicle(playerid, cars, 1); } } return 1; }
C:\Users\GTA ONLY\Desktop\The_Eclipse_V4.8\filterscripts\challange.pwn(100) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new somecar; // Global variable
public OnGameModeInit()
{
somecar = CreateVehicle(.....); // Create your vehicle, store the ID in the variable.
return 1;
}
// Then put the player in that vehicle:
PutPlayerInVehicle(playerid, somecar, 0);