15.02.2014, 05:42
Do what is below, what i mean by do is to follow what is below.
Hope it helps you out!
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid,classid);
// Rest of the code...
}
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Skin 0"); // Change this with what you want
}
if(classid == 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Skin 1"); // Change this with what you want
}
// Rest of the code...
}
SetTimerEx("KickPlayer",200,false,"d", playerid); // Put this where you want to set the timer
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
Kick(playerid);
}