02.01.2013, 13:10
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(NeedToReset[playerid]==1)
{
ResetPlayerWeapons(playerid);
}
if(Logged[playerid]==false || SInfo[playerid][readytosave] == 0)
{
SInfo[playerid][Skin]=skins[classid];
SendClientMessage(playerid,0xFF0000,"One-One");///////////////////////////////////////////
}
else
{
SendClientMessage(playerid,0xFF0000,"Two_Two");///////////////////////////////////////////
SetPlayerSkin(playerid,SInfo[playerid][Skin]);
if (skins[classid]!=SInfo[playerid][Skin])
return OnPlayerRequestClass(playerid,classid+1);
}
MostrarInicio(playerid);
SetPlayerPos(playerid, 1436.5667,-1500.1584,13.5391);
SetPlayerFacingAngle(playerid, 232.5814);
SetPlayerCameraPos(playerid, 1443.1050,-1503.9122,13.3806);
SetPlayerCameraLookAt(playerid, 1436.5667,-1500.1584,13.5391);
switch (classid)
{
case 0,1,2,3,4,5:
{
team0(playerid);
SetPlayerTeam(playerid, 1);
copteam[ playerid ] = 1;
GameTextForPlayer(playerid,"~B~Cop",5000,3);
SetPlayerColor(playerid, 0x0000FFAA);
}
case 6,7,8:
{
team0(playerid);
SetPlayerTeam(playerid, 1);
ciateam[ playerid ] = 1;
GameTextForPlayer(playerid,"~Y~CIA",5000,3);
SetPlayerColor(playerid, 0xFFFFFFFF);
}
case 9,10,11:
{
team0(playerid);
SetPlayerTeam(playerid, NO_TEAM);
medicteam[ playerid ] = 1;
GameTextForPlayer(playerid,"~P~Medic",5000,3);
SetPlayerColor(playerid, 0x800080AA);
}
case 12:
{
team0(playerid);
SetPlayerTeam(playerid, 1);
armyteam[ playerid ] = 1;
GameTextForPlayer(playerid,"~G~Army",5000,3);
SetPlayerColor(playerid, 0x00FFFFFF);
}
case 13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121:
{
team0(playerid);
SetPlayerTeam(playerid, NO_TEAM);
civilianteam[ playerid ] = 1;
GameTextForPlayer(playerid, "~W~Civilian",5000,3);
SetPlayerColor(playerid, 0xFFFFFFAA);
}
}
return 1;