1.
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -853.4641,-881.7031,149.6406);
SetPlayerCameraPos(playerid, -850.4641,-878.7031,149.6406);
SetPlayerCameraLookAt(playerid, -853.4641,-881.7031,149.6406);
SetPlayerClass(playerid, classid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, \"~w~Civil\", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, \"~w~Mentös\", 500, 3);
}
}
return 1;
}
Ird át majd a tiedre.
2.
include <a_samp>
#include <IsPlayerLAdmin>
public OnPlayerRequestSpawn(playerid)
{
new SkinID = GetPlayerSkin(playerid);
if(SkinID == 217 || SkinID == 288 || SkinID == 265 || SkinID == 267)
{
if (!IsPlayerLAdmin(playerid))
{
GameTextForPlayer(playerid, \"~r~Ezt a Skint Csak adminok hasznalhatjak!\", 750, 6);
return 0;
}
}
return 1;
}
Remélem jók!