[Help] Colour Problem
#6

try this
pawn Код:
public OnPlayerSpawn(playerid)
{
    GivePlayerMoney(playerid, PocketMoney);
    SetPlayerInterior(playerid,0);
    SetPlayerRandomSpawn(playerid);
    TogglePlayerClock(playerid,1);
    TextDrawShowForPlayer(playerid,Textdraw2);
    TextDrawShowForPlayer(playerid,Textdraw3);
    return 1;
}
public SetPlayerRandomSpawn(playerid)
{
    if (iSpawnSet[playerid] == 1)
    {
        new rand = random(sizeof(gCopPlayerSpawns));
        SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
        SetPlayerFacingAngle(playerid, 270.0);
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    else if (iSpawnSet[playerid] == 0)
    {
        new rand = random(sizeof(gRandomPlayerSpawns));
        SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
        SetPlayerColor(playerid,COLOR_RED);
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Colour Problem - by Sid_Alexander - 13.05.2011, 21:00
Re: [Help] Colour Problem - by Kaperstone - 13.05.2011, 21:02
Re: [Help] Colour Problem - by Laronic - 13.05.2011, 21:03
Re: [Help] Colour Problem - by Sid_Alexander - 13.05.2011, 21:03
Re: [Help] Colour Problem - by Sid_Alexander - 13.05.2011, 21:09
Re: [Help] Colour Problem - by Kaperstone - 13.05.2011, 21:12
Re: [Help] Colour Problem - by Sid_Alexander - 13.05.2011, 21:16
Re: [Help] Colour Problem - by Sid_Alexander - 13.05.2011, 21:21
Re: [Help] Colour Problem - by Kaperstone - 13.05.2011, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)