Üdv, ma elkezdtem folytatni az egyik játékmódomat csak a dm zónáknál a spawnolásban az a gáz h , amikor lespawnolok már oda rak le
Kód:
public OnPlayerSpawn(playerid) {
switch(GetPVarInt(playerid,\"DM\"))
{
case 0:
{
new rand = random(sizeof( M4 ) );
SetPlayerPos(playerid,M4[rand][0],M4[rand][1],M4[rand][2]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,31,5000);
SetPlayerHealth(playerid,10);
}
case 1:
{
new rand = random( sizeof ( Sawn ) );
SetPlayerPos(playerid,Sawn[rand][0],Sawn[rand][1],Sawn[rand][2]);
SetPlayerHealth(playerid,100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,5000);
}
case 2:
{
new
rand = random( sizeof ( MGM ) );
SetPlayerPos( playerid, MGM[ rand ] [ 0 ], MGM[ rand ] [ 1 ], MGM[ rand ] [ 2 ] );
ResetPlayerWeapons( playerid );
GivePlayerWeapon( playerid, 38, 9999 );
}
case 3:
{
new
rand = random( sizeof ( MGM ) );
SetPlayerPos( playerid, DDM[ rand ] [ 0 ], DDM[ rand ] [ 1 ], DDM[ rand ] [ 2 ] );
ResetPlayerWeapons( playerid );
SetPlayerInterior(playerid,16);
GivePlayerWeapon( playerid, 10, 9999 );
}
default:
{
Tele(playerid,2239.0166,2233.2952,10.8032,273.8759,\"\");
}
}
return 1;
}