Meine Roller sollen bei Server Start zu sein nur wie ?
new noobroller[4];
public OnGameModeInit()
{
noobroller[0]=AddStaticVehicle(462,820.1323,-1355.5303,13.1568,35.3078,1,1); // noob roller 1
noobroller[1]=AddStaticVehicle(462,817.9501,-1355.8345,13.1598,43.4024,1,1); // noob roller 2
noobroller[2]=AddStaticVehicle(462,813.2731,-1355.8646,13.1571,312.7791,1,1); // noob roller 3
noobroller[3]=AddStaticVehicle(462,811.4810,-1355.9003,13.1612,313.4424,1,1); // noob roller 4
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i = 0; i<sizeof(noobroller); i++)
{
if(GetPlayerVehicleID(playerid) == noobroller)
{
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,0);
}
}
}
}
return 1;
}
Lg Savas