27.11.2011, 16:51
pawn Код:
public OnPlayerSpawn(playerid)
{
new Random = random(sizeof(MdmSpawns));
new r = random(sizeof(RandomPistol));
new r1 = random(sizeof(RandomAssault));
new r2 = random(sizeof(RandomHeavy));
new r3 = random(sizeof(RandomSub));
if(MDM[playerid] != 0) {
SetPlayerPos(playerid, MdmSpawns[Random][0], MdmSpawns[Random][1], MdmSpawns[Random][2]);
GivePlayerWeapon(playerid, RandomPistol[r][0], RandomPistol[r][1]);
GivePlayerWeapon(playerid, RandomAssault[r1][0], RandomAssault[r1][1]);
GivePlayerWeapon(playerid, RandomHeavy[r2][0], RandomHeavy[r2][1]);
Freeze(playerid, 5000);
}
if(WTF[playerid] != 0);//382
SetPlayerPos(playerid, WtfSpawns[Random][0], WtfSpawns[Random][1], WtfSpawns[Random][2]);
GivePlayerWeapon(playerid, RandomPistol[r][0], RandomPistol[r][1]);
GivePlayerWeapon(playerid, RandomAssault[r1][0], RandomAssault[r1][1]);
GivePlayerWeapon(playerid, RandomSub[r3][0], RandomSub[r3][1]);
Freeze(playerid, 5000);
else {//388
SetPlayerPos(playerid, 405.7959, 2436.9858, 16.5000), SetPlayerInterior(playerid, 0);
}
return 1;
}
pawn Код:
Wtf[playerid] = 1;//1116