Skin, spawn by the farmzone, [HELP]
#1

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:

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);
        }
    }
This is for my spawn thing, see this:
Quote:

case 147,150:

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..
Reply
#2

Look for your AddPlayerClass lines in your gamemode, or SetSpawnInfo lines, these can usually determine where your player will spawn, as they have spawn parameters.

https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#3

Its in my filterscript, but it can also used in a filterscript right?

and no no no, I have random spawns, so if the player choose police skin in the requestclass, he will spawn as a police character in the police department in San Fier, random spawn in the area, but if a player choose a skin with /setskin <skinid> he will be spawn as the choosen skin, if he use as example the police character again in the requestclass, he will be spawn in the police department again in San Fiero , but as his choosen skin..

But now it didnt work so good, I choosen a skin, but I didnt spawn where I must be spawn, I spawned first under the ground and later by the farmzone..
Reply
#4

I have tried ANYTHING but nothing works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)