pawn Код:
switch (classid)
{
case 0, 1, 2, 3, 4, 5, 6, 7: // Classes that will be truckdrivers
{
// Display the name of the class
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -1542.803955, -2774.870849, 48.410972);
SetPlayerFacingAngle(playerid, 212.617797);
SetPlayerCameraLookAt(playerid, -1542.803955, -2774.870849, 48.410972);
SetPlayerCameraPos(playerid, -1542.803955 + (5 * floatsin(-212.617797, degrees)), -2774.870849 + (5 * floatcos(-212.617797, degrees)), 48.410972);
GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 6);
ApplyAnimation(playerid, "DANCING", "dnce_M_d", 4.0, 1, 0, 0, 0, 0);
// Store the class for the player (truckdriver)
APlayerData[playerid][PlayerClass] = ClassTruckDriver;
if (APlayerData[playerid][WeaponLicense] == 1)
{
for (new i; i < 12; i++)
GivePlayerWeapon(playerid, APoliceWeapons[i], PoliceWeaponsAmmo);
}
}