spawn place
#5

pawn Код:
public OnPlayerSpawn(playerid)


{
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,1);
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    if(GetPlayerTeam(playerid) == 1)
    {
        format(str, sizeof(str), "* Player \"%s\" joined Police class! *", str);
        for(new i; i < MAX_PLAYERS; i++) SendClientMessage(i, 0x0000ffff, str);
        SetPlayerColor(playerid, 0x0000ffff);
        GameTextForPlayer(playerid, "~b~Use ~r~~k~~VEHICLE_FIREWEAPON~ ~b~(Or ~k~~VEHICLE_FIREWEAPON_ALT~) in vehicle to arrest/fine~n~~b~Use ~r~~k~~PED_LOOKBEHIND~ ~b~on foot to arrest/fine", 30000, 3);
    }
    if(GetPlayerTeam(playerid) == 2)
    {
        format(str, sizeof(str), "* Player \"%s\" joined Trucker class! *", str);
        for(new i; i < MAX_PLAYERS; i++) SendClientMessage(i, 0xffff00ff, str);
        SetPlayerColor(playerid, 0xffff00ff);
        SendClientMessage(playerid, 0xffff00ff, "Type {ff0000}/WORK {ffff00}to start earning cash and score!");
       
    }
    if(GetPlayerTeam(playerid) == 3)
    {
        format(str, sizeof(str), "* Player \"%s\" joined Assistance class! *", str);
        for(new i; i < MAX_PLAYERS; i++) SendClientMessage(i, 0x33FF00FF, str);
        SetPlayerColor(playerid, 0x33FF00FF);
    }
    if(GetPlayerTeam(playerid) == 4)
    {
        format(str, sizeof(str), "* Player \"%s\" joined Bus Driver class! *", str);
        for(new i; i < MAX_PLAYERS; i++) SendClientMessage(i, 0xFF6633FF, str);
        SetPlayerColor(playerid, 0xFF6633FF);
        SendClientMessage(playerid, 0xFF6633ff, "Type {FF0000}/onduty {FF6633}to start earning cash and score");
        }
    return SetCameraBehindPlayer(playerid), SetPlayerInterior(playerid, 0), SetPlayerPos(playerid,-94.8380,-1140.8888,1.2935), true;
}
Reply


Messages In This Thread
spawn place - by [LHT]Bally - 10.09.2011, 19:54
Re: spawn place - by [M]onsieur - 10.09.2011, 19:57
Re: spawn place - by Zonoya - 10.09.2011, 19:58
Re: spawn place - by [LHT]Bally - 10.09.2011, 20:03
Re: spawn place - by [M]onsieur - 10.09.2011, 20:05
Re: spawn place - by [LHT]Bally - 10.09.2011, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)