Daca ai observat , cand te spwanezi ai skinul lui cj , pentru ca este singurul skin valabil.
Pentru a adauga mai multe skinuri , vei avea nevoie de pawno si de modul creat mai devreme.
1 - Deschide modul vechi
- Dati search dupa " public OnGameModeInit() "
- In mod normal el arata cam asa
CODE
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
AddPlayerClass = Adaugare Skin de Spawn
AddPlayerClass se foloseste astfel : AddPlayerClass(skinid,coordx,coordy,coordz,inclinatia,arma1,munitie1,arma2,munit
ie2,arma3,munitie3);
-Copiem "AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); " si il scriem exact sub cel original .
CODE
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
- In loc de 0 ( care este skinid ) punem alt skinid.( skinlists AICI
CODE
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
Daca intram ingame , tot nu ne va aparea sa selectam skin-ul pentru ca este pusa camera look p***t.
-Cautati " public OnPlayerRequestClass(playerid, classid) "care arata cam asa
CODE
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
Si inlocuiti-l cu
CODE
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,323.4,305.6,999.1);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,323.4-1.5-1.0,305.6,999.1+0.7);
SetPlayerCameraLookAt(playerid,323.4-1.0,305.6,999.1+0.7);
return 1;
}
-Apasati butonul COMPILE si deschideti serverul ,daca ati facut totul corect veti avea skin-ul
PS : Puteti adauga cate skinuri vreti , adaugand o noua linie
Exemplu
CODE
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(106, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(107, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(108, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);