20.09.2011, 17:22
Nice tutorial.
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
COMMAND:start(playerid, params[])//LINE 100 HERE
{
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;
}
public OnFilterScriptInit() { CreateDynamicCP(1017.3148, -929.1449, 420.1316, 3, 0, 0, -1, 100.0); CreateDynamicCP(1946.0314, -1921.3646, 584.5061, 3, 0, 0, -1, 100.0); CreateDynamicCP(1017.3148, -929.1449, 420.1316, 3, 0, 0, -1, 100.0); return 1; }
} COMMAND:start(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; }
CreateDynamicCP(1017.3148, -929.1449, 420.1316, CHANGEME, 0, 0, -1, 100.0);
COMMAND:start(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
CreateDynamicCheckPoint(....);
}
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);
CreateDynamicCheckPoint(....);
}
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);
CreateDynamicCheckPoint(....);
}
return 1;
}
Tutorial about what? Currencly almost done with this one, but no idea about what my next will be
|
HI there i ust tried your quide but when i add it to my GM it just crashes the complier any ideas why?
http://pastebin.com/0UeG4jiz |