GivePlayerWeapon weird problem - Need Help
#5

Try to put it on top of onplayerspawn.... it might help

pawn Код:
public OnPlayerSpawn(playerid)
{
        GivePlayerWeapon(playerid, 24, 50);
    GivePlayerWeapon(playerid, 32, 150);
    new string[128], Sati, Min, Sec, Godina, Mjesec, Dan;
    new Random = random(sizeof(RandomSpawns));
    getdate(Godina, Mjesec, Dan);
    gettime(Sati, Min, Sec);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerHealth(playerid, 100);
    SetPlayerScore(playerid, PlayerInfo[playerid][pKills]);
    SetPlayerColor(playerid, COLOR_WHITE);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerFacingAngle(playerid, 180.772293);
    SetPlayerTeam(playerid, 255);
    if(GetPVarInt(playerid, "Prijavljen") == 1)
    {
        GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
        SetPVarInt(playerid, "Prijavljen", 0);
        format(string, sizeof(string), "*Dobrodosao %s na nas server, ljepo te opet vidjeti!", PlayerName(playerid));
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "*Tvoji statsi: Minuta online: [%d]",PlayerInfo[playerid][Minute]);
        SendClientMessage(playerid, COLOR_WHITE, string);
        format(string, sizeof(string), "*Sada je: %d:%dh | Datum: %d.%d.%d", Sati, Min, Dan, Mjesec, Godina);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        if(PlayerInfo[playerid][VIP] == 1)
        {
            format(string, sizeof(string), "*Vi ste V.I.P clan ovog servera", PlayerInfo[playerid][VIP]);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            viplabel[playerid] = Create3DTextLabel("V.I.P", COLOR_BLUE, 0.0, 0.0, 0.0, 50.0, -1, 1);
            Attach3DTextLabelToPlayer(viplabel[playerid], playerid, 0.0, 0.0, 0.6);
        }
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            format(string, sizeof(string), ".:| Dobrodosao %s, ulogirao si se kao Admin Level %d |:.", PlayerName(playerid), PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_OLIVE, string);
            format(string, sizeof(string), ".:| WS:DM Admin %s, level: %d, je usao na server |:.", PlayerName(playerid), PlayerInfo[playerid][pAdmin]);
            SendAdminMessage(1, COLOR_CHARTREUSE, string);
        }
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)