SA-MP Forums Archive
Ped (easy answer) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ped (easy answer) (/showthread.php?tid=464753)



Ped (easy answer) - Aleksabre - 18.09.2013

When I make a PEDs, where should I set them? It's not even in "OnGameModeInit" or if I'm making a filterscript "OnFilterScriptInit" so where should I save it?


Re: Ped (easy answer) - DanishHaq - 18.09.2013

Use /save in the game whilst NOT in a vehicle, with the pedestrian skin and where you want the pedestrian to spawn, and then simply copy and paste it under OnGameModeInit / OnFilterScriptInit, it would look something like this:

pawn Код:
OnGameModeInit
{
       AddPlayerClass(skinid, some other stuff here);
       return 1;
}
Then, when you enter in the game it will automatically call OnPlayerRequestClass and that's where all these pedestrian skins will be shown.


Re: Ped (easy answer) - Aleksabre - 18.09.2013

Look, I got this:
AddPlayerClass(29,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10 000); //

but when I connect to the server, it requests if I want to join ID 29 skin with that x y z positions.
Code;
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(29,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(45,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(107,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(115,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(116,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(143,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(155,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(167,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(189,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(292,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(299,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    UsePlayerPedAnims();

    // Don't use these lines if it's a filterscript
    SetGameModeText("ReaLife Gaming");
    AddPlayerClass(29,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(45,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(107,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(115,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(116,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(143,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(155,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(167,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(189,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(292,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    AddPlayerClass(299,2071.3618,-1874.5078,13.5469,269.9882,24,10000,26,10000,31,10000); //
    return 1;
}



Re: Ped (easy answer) - Aleksabre - 18.09.2013

Actually, I want a skin(i'll chose any, example ID 45) stands in-front of the some door and do like a /deal anim, like a protector, how?


Re: Ped (easy answer) - Aleksabre - 18.09.2013

How do I make a ped like that "it stands in-front of the some door and do like a /deal anim, like a protector"