31.03.2012, 08:03
pawn Код:
//at the top of scripter after #include <a_samp> or other #include
#define ORANGE 0xFF8000FF
#define RED 0xFF0000FF
#define YELLOW 0xFFFF00FF
#define GREEN 0x008000FF
#define BLUE 0x0080FFFF
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 408.1266,2532.2192,17.770;
SetPlayerFacingAngle(playerid,87.1413);
SetPlayerCameraPos(playerid, 401.6212,2532.2688,16.5452);
SetPlayerCameraLookAt(playerid, 401.6212,2532.2688,16.5452);
if(GetPlayerSkin(playerid) == 179)
{
GameTextForPlayer(playerid, "~g~PAKISTAN", 1000, 4);
SetPlayerColor(playerid, GREEN);
}
if(GetPlayerSkin(playerid) == 30)
{
GameTextForPlayer(playerid, "~o~GERMANY", 1000, 4);
SetPlayerColor(playerid, ORANGE);
}
if(GetPlayerSkin(playerid) == 287)
{
GameTextForPlayer(playerid, "~b~USA", 1000, 4);
SetPlayerColor(playerid, BLUE);
}
if(GetPlayerSkin(playerid) == 285)
{
GameTextForPlayer(playerid, "~r~RUSSIA", 1000, 4);
SetPlayerColor(playerid, RED);
}
else if(GetPlayerSkin(playerid) == 123)
{
GameTextForPlayer(playerid, "~y~FRANCE", 1000, 4);
SetPlayerColor(playerid, YELLOW);
}
return 1;
}