Connect error
#3

Here it is

pawn Код:
public OnPlayerSpawn(playerid){
    if(IsPlayerNPC(playerid))
    {
        SetPlayerColor(playerid,0xffaa5533);
    }
    new randSpawn = 0;

    if(CITY_LOS_SANTOS == gPlayerCitySelection[playerid]) {
        randSpawn = random(sizeof(gRandomSpawns_LosSantos));
        SetPlayerPos(playerid,
         gRandomSpawns_LosSantos[randSpawn][0],
         gRandomSpawns_LosSantos[randSpawn][1],
         gRandomSpawns_LosSantos[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_LosSantos[randSpawn][3]);
    }
    else if(CITY_SAN_FIERRO == gPlayerCitySelection[playerid]) {
        randSpawn = random(sizeof(gRandomSpawns_SanFierro));
        SetPlayerPos(playerid,
         gRandomSpawns_SanFierro[randSpawn][0],
         gRandomSpawns_SanFierro[randSpawn][1],
         gRandomSpawns_SanFierro[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_SanFierro[randSpawn][3]);
    }
    else if(CITY_LAS_VENTURAS == gPlayerCitySelection[playerid]) {
        randSpawn = random(sizeof(gRandomSpawns_LasVenturas));
        SetPlayerPos(playerid,
         gRandomSpawns_LasVenturas[randSpawn][0],
         gRandomSpawns_LasVenturas[randSpawn][1],
         gRandomSpawns_LasVenturas[randSpawn][2]);
        SetPlayerFacingAngle(playerid,gRandomSpawns_LasVenturas[randSpawn][3]);
    }
    GivePlayerWeapon(playerid,WEAPON_COLT45,100);
    GivePlayerWeapon(playerid,WEAPON_MP5,100);

   
    return 1;
}
Reply


Messages In This Thread
Connect error - by JEkvall95 - 22.06.2013, 16:02
Re: Connect error - by Dripac - 22.06.2013, 16:07
Re: Connect error - by JEkvall95 - 22.06.2013, 16:09
Re: Connect error - by JEkvall95 - 22.06.2013, 16:13
Re: Connect error - by Affan - 22.06.2013, 16:55
Re: Connect error - by JEkvall95 - 22.06.2013, 17:15
Re: Connect error - by CountyRP - 22.06.2013, 18:03

Forum Jump:


Users browsing this thread: 2 Guest(s)