Two questions
#8

Quote:
Originally Posted by Jakku
Посмотреть сообщение
pawn Код:
PlayerPlaySound(playerid, 1184, 0.0,0.0,0.0);
Use this to stop the music
Doesn't work...


Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(logged[playerid] == 0)
    {
        SendClientMessage(playerid,COLOR_RED,"You must login before spawning!");
        return 0;
    }
    else return 1;
}
This was what I wanted, just had to return!



Quote:
Originally Posted by ikey07
Посмотреть сообщение
pawn Код:
if(logged[playerid] == 0)
{
    SendClientMessage(playerid,COLOR_RED,"You must login before spawning!");
    SetPlayerPos(playerid,YourXSpawnplace,YourYSpawnplace,YourZSpawnplace);
    return 1;
}
But First spawn you need to make anyway, if you want that player can do something.
What do you mean with that? Ofc I got a spawn place..
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(logged[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"You must login before spawning!");
    }
    if(logged[playerid] == 1)
    {
    if(OnPlayerLoginSpawn[playerid] == 1)
    {
    SetPlayerPos(playerid,-2501.2983,2319.1453,4.9844);
    PlayerPlaySound(playerid, 1184, 0.0,0.0,0.0); // This should stop my music, but doesn't...
    }
    if(OnPlayerDeathSpawn[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"You wake up on the hosital, forgot everything what happen the last 30 minitues.");
    SendClientMessage(playerid,COLOR_RED,"You've been forced for $500 in Medical Bills.");
    SetPlayerPos(playerid,-2492.1462,2363.3826,10.2732);
    GivePlayerMoney(playerid,-500);
    }
    }
    return 1;
}
Reply


Messages In This Thread
Two questions - by [DK]JaloNik - 14.07.2010, 08:17
Re: Two questions - by bigcomfycouch - 14.07.2010, 08:22
Re: Two questions - by [DK]JaloNik - 14.07.2010, 08:23
Re: Two questions - by Jakku - 14.07.2010, 08:34
Re: Two questions - by [XST]O_x - 14.07.2010, 08:38
Re: Two questions - by oliverrud - 14.07.2010, 08:38
Re: Two questions - by ikey07 - 14.07.2010, 08:41
Re: Two questions - by [DK]JaloNik - 14.07.2010, 08:47
Re: Two questions - by oliverrud - 14.07.2010, 09:01
Re: Two questions - by [DK]JaloNik - 14.07.2010, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)