Problem with Spawnpoints
#1

Hello everybody!

Well, I was working on a system, where the player can't betray his gang! He can only choose one gang/skin, and will play with this skin forever!!!

Now these are my AddPlayerClasses, but every player has his own spawnpoint!

pawn Код:
public OnGameModeInit() {
    SetNight();
    SetGameModeText("***Live your own life as a GangstA***");
    //Ballas
    AddPlayerClass(102, 1974.4895,-1157.0608,20.9505,95.6222, 30, 350, 29, 350, 27, 350); //Ballas1
    AddPlayerClass(103, 1976.7120,-1183.5504,26.0188,98.0542, 22, 350, 34, 350, 29, 350); //Ballas2
    AddPlayerClass(104, 2092.0271,-1166.3419,26.5859,89.4869, 28, 350, 23, 350, 4, 0); //Ballas3
   //Grove
    AddPlayerClass(269, 2486.7598,-1647.5186,14.0703,187.5500, 30, 350, 25, 350, 24, 350); //Smoke
    AddPlayerClass(271, 2459.9001,-1688.4135,13.5280,2.9949, 33, 350, 32, 350, 31, 350); //Ryder
    AddPlayerClass(270,2516.3430,-1674.3085,13.9348,81.6422,32,350,31,350,34,350); // Sweet
    AddPlayerClass(0,2495.4890,-1688.2717,13.7022,5.9233,1,0,29,350,27,350); // CJ
    AddPlayerClass(105,2451.6484,-1642.4531,13.7357,182.6713,28,350,33,350,22,350); // grove1
    AddPlayerClass(106,2413.7170,-1647.2096,14.0119,174.8622,26,350,30,350,23,350); // grove2
    AddPlayerClass(107,2408.6982,-1674.0126,13.6037,356.5973,34,350,30,350,32,350); // grove3
   //Vagos
    AddPlayerClass(108,2571.8352,-1091.2091,66.9639,48.7203,29,350,9,0,31,350); // Vagos1
    AddPlayerClass(109,2569.7373,-1088.5804,67.0079,220.8869,22,350,33,350,30,350); // Vagos2
    AddPlayerClass(110,2576.0371,-1070.5568,69.8322,89.5007,27,350,24,350,32,350); // Vagos3
    return 1;
}
And now, for my theory with antibetray, here my code!

pawn Код:
SetPlayerSpawn(playerid) {
    new p_skin = gPlayerSkinForEver[playerid];
    if(p_skin == 102 || p_skin == 103 || p_skin == 104) { // This is BALLAS.
    SetSpawnInfo(playerid, 1, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 267 || p_skin == 271 || p_skin == 270 || p_skin == 0 || p_skin == 105 || p_skin == 106 || p_skin == 107) { // This is GROOVE.
        SetSpawnInfo(playerid, 2, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 108 || p_skin == 109 || p_skin == 110) { // This is VAGOS.
        SetSpawnInfo(playerid, 3, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    }
    SpawnPlayer(playerid);
    return 1;
}
He wants again co-ordinates! Can I do it somehow else I want that the old spawnpoints from AddPlayerClasses stay!!!

Oh, something else: Me as admin can change his skin whenever he wants!
Reply


Messages In This Thread
Problem with Spawnpoints - by samtey - 02.08.2011, 08:58
Re: Problem with Spawnpoints - by Godhimself - 02.08.2011, 09:31
Re: Problem with Spawnpoints - by sansko - 02.08.2011, 09:34
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 11:07
Re: Problem with Spawnpoints - by Gray - 02.08.2011, 11:15
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:02
Re: Problem with Spawnpoints - by iPLEOMAX - 02.08.2011, 12:05
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:14
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:36
Re: Problem with Spawnpoints - by Toreno - 02.08.2011, 13:22
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 13:28
Re: Problem with Spawnpoints - by Toreno - 02.08.2011, 13:46
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 13:50
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 15:49
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 16:04
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)