Код:
if (strcmp("/kickstart", cmdtext, true) == 0)
{
if(IsSomeOnePlayingKickstart == 1)
{
SendClientMessage(playerid, 0xFF0000AA, "Sorry, someone else is already playing Kickstart. Wait till he/she's finished!");
return 1;
}
IsSomeOnePlayingKickstart = 1;
StadiumCycle = CreateVehicle(468,-1492.5464,1613.2220,1052.1998,271.7825,0,0, -1);
LinkVehicleToInterior(StadiumCycle, 14);
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1494.9211,1616.5856,1052.5313);
SetPlayerFacingAngle(playerid, 245.0736);
SetCameraBehindPlayer(playerid);
IsPlayerRacing[playerid] = 1;
for(new i; i<MAX_PACKAGES; i++)
{
PackagePickupID[i] = CreatePickup(PackageModels[i], 1, CPositions[i][0], CPositions[i][1], CPositions[i][2]);
IsPackagePickedUp[i] = 0;
}
GameTextForPlayer(playerid, "~w~Get on the bike!", 9999999, 3);
HasToGetOnBike[playerid] = 1;
return 1;
}