02.01.2013, 11:13
Hey, In my server, peoples can change their skin, with /setskin <skinid> it work good, but when I rejoin, the skin is saved, thasts good, but I dont have a spawn zone!, I spawned first under the ground, and later I am spawned by a farmzone or anything.. I think its because:
This is for my spawn thing, see this:
this are the 2 skins, but not skin 271, the skin that I have choosen, Thats the reason why I didnt spawned,
Anyone know how I can spawn by the normal place that I have scripted, with a random choosen skin?
Thanks..
pawn Код:
switch(GetPlayerSkin(playerid))
{
case 147,150:
{
new rand = random(sizeof(bRandomSpawns));
SetPlayerPos(playerid, bRandomSpawns[rand][0], bRandomSpawns[rand][1], bRandomSpawns[rand][2]);
SetPlayerFacingAngle(playerid,bRandomSpawns[rand][3]);
SetCameraBehindPlayer(playerid);
SetPlayerColor(playerid, 0x4DC6D6FF);
}
}
Quote:
case 147,150: |
Anyone know how I can spawn by the normal place that I have scripted, with a random choosen skin?
Thanks..