Help map change - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help map change (
/showthread.php?tid=276670)
Help map change -
[MKD]Max - 14.08.2011
hey guys i have make map change system ... but when its come to change the map its not work its let me in 1 map here is the script i made
and at the first i add those
Код:
new MapChange;
forward StartedNewRound();
NewMapTimer(playerid);
Код:
OnGameModeInit()
{
SetTimer("NewMapTimer",9000,true);
MapChange= 0;
return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
switch( MapChange ) {
case 0:{
SetPlayerPos(playerid,-249.95, -34.06, 3.00);
SetPlayerFacingAngle(playerid,180.00);
}
case 1:{
SetPlayerPos(playerid,2488.54, 653.64, 11.00);
SetPlayerFacingAngle(playerid,84.00);
}
}
Код:
public NewMapTimer(playerid)
{
MapChange++;
GameTextForAll("~b~ Loading new ~w~MAP",4000,3);
SetTimer("StartedNewRound",4000,false);
return 1;
}
Код:
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer ( i ) ;
switch ( MapChange )
{
case 0:{
SendClientMessage(i,COLOR_GREEN,"Map Name: Shipment");
}
case 1: {
SendClientMessage(i,COLOR_GREEN,"Map Name: Asian Shipment");
}
}
}
return 1;
}
Re: Help map change -
[MKD]Max - 14.08.2011
bump please help