Player class
#1

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

Can you explain exactly what you mean please?
Reply
#3

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

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

Код:
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?
Reply
#5

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


    return 1;
}
Reply
#6

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

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


+REP If I Helped!!
Reply
#8

Are you looking to send a message to a certain team?
Reply
#9

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)