stock SPAWN(playerid){if(GetPVarInt(playerid,"DEAGLEDM")==1)
switch(random(8))
{
case 0:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 1:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx;
case2:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 3:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 4:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 5:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 6:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);
case 7:SetPlayerPos(playerid,xxxxxxx,xxxxxxx,xxxxxxx),SetPlayerInterior(playerid,,xxxxxxx),SetPlayerVirtualWorld(playerid,,xxxxxxx);}
return 1;
}
Habe folgenden Stock, leider wenn ich sterbe und per Random Spawn wieder gespawnt werden soll, dauert das ne ganze Weile.
Schaue erstmal um die 2 Sekunden ins leere bis ich gespawnt werde.
Gibt es eine Möglichkeit, das schneller zu machen?