25.11.2016, 21:25
PHP код:
RespawnInDM(playerid)
{
switch(DMZone[playerid])
{
case 1: // First DM
{
new rand1 = random(sizeof(DeathmatchLVPD));
CreateDM(
playerid, DeathmatchLVPD[rand1][0], DeathmatchLVPD[rand1][1], DeathmatchLVPD[rand1][2], DeathmatchLVPD[rand1][3], 100, 100, 24, 25, 3, 0, 1); // each DM has to get it's own zone ID.
}
case 2: // Second DM
{
new rand1 = random(sizeof(DeathmatchJeffersonMotel));
CreateDM(
playerid, DeathmatchJeffersonMotel[rand1][0], DeathmatchJeffersonMotel[rand1][1], DeathmatchJeffersonMotel[rand1][2], DeathmatchJeffersonMotel[rand1][3], 100, 100, 24, 25, 15, 0, 1);
}
}//here must need } to close it
return 1;
}
i added, you can try it
or another err?