checking player skin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: checking player skin (
/showthread.php?tid=369692)
checking player skin -
R4VER - 17.08.2012
hey guys is there any way to check which skin id is player using?
Re: checking player skin -
leonardo1434 - 17.08.2012
https://sampwiki.blast.hk/wiki/GetPlayerSkin
Re: checking player skin -
Kindred - 17.08.2012
Use
GetPlayerSkin
Seriously, please search before asking.
Re: checking player skin -
R4VER - 17.08.2012
oh thx somuch

i searched a lil bit but i couldnt find... im sorry anyway
Re: checking player skin -
R4VER - 17.08.2012
hmmm im trying to create a script which lets swat skin only to enter LSPD police car... but it doesnt work :S
Код:
new skin = GetPlayerSkin(playerid);
new car = GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(car == 596)
{
if(skin == 285)
{
SendClientMessage(playerid, -1, "Sucessfully Entered!");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "you arenot a police!");
}
}
}
it compiles without any error but it doesnt work...anyone knows why?
Re: checking player skin -
lamarr007 - 17.08.2012
pawn Код:
new car = GetVehicleModel(GetPlayerVehicleID(playerid));
Re: checking player skin -
R4VER - 17.08.2012
oh

thx bro