SA-MP Forums Archive
Player class - 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: Player class (/showthread.php?tid=389844)



Player class - Michael98 - 03.11.2012

Is there any way to get the player classid on player spawn?


Re: Player class - Drake_Lopez - 03.11.2012

Can you explain exactly what you mean please?


Re: Player class - Drake_Lopez - 03.11.2012

If you mean how to set the skin id this is the solution:

AddPlayerClass("the first number here is the skinid",Coordinates..)


Re: Player class - Michael98 - 03.11.2012

Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 1)SendClientMessage(playerid,-1,"Police spawn"); //How can i get this on OnPlayerSpawn ??
return 1;
}
Is there any way?


Re: Player class - YoYo123 - 03.11.2012

Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerSkin(playerid) ==  1) // continue from here


    return 1;
}



Re: Player class - Michael98 - 03.11.2012

Quote:
Originally Posted by YoYo123
Посмотреть сообщение
Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerSkin(playerid) ==  1) // continue from here


    return 1;
}
It could be..But i also have a skin change command.Thanks anyway.


Re: Player class - Drake_Lopez - 03.11.2012

Are you using Y_ini?
It would be much easier for you..


+REP If I Helped!!


Re: Player class - Stu1 - 03.11.2012

Are you looking to send a message to a certain team?


Re: Player class - Michael98 - 03.11.2012

Actually i want to give more weapons to player..
the AddPlayerClass(skin, x, y, z, angle, weapon, ammo, weapon, ammo, weapon, ammo);
will give only three weapons to the player..So i thought that i can give to the player more weapons on OnPlayerSpawn..
If there is another way to give more weapons to the player than this please post it.
Thanks


Re: Player class - Stu1 - 04.11.2012

GivePlayerWeapon(playerid, weaponid, ammo);
Put that onOnPlayerSpawn