Spawning
#1

Hi Guys,
Can u guys say how i can script like this.when the server connect an dialog system came to choose skill like
piolet,militry,stunter. when they select there skin selection should come.how i can script like

If any one help me will be getting +REP
Reply
#2

look into y_classes part of YSI

****** has even made a few example modes to learn from and it works very well
and is designed to do exactly what your trying to do.
Reply
#3

can i get its link
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=321092
thats the link for YSI

its a huge lib,
scroll down a little and look for y_classes
theirs a link to a tutorial and 2 different gamemode examples.

Also expect some reading time,
the lib is complex but using it shouldn't be to bad if you read threw
the tutorials that ****** provides.
Reply
#5

yes jonny i got but i got error
Quote:

C:\Users\hp\Desktop\spawn.pwn(44) : error 017: undefined symbol "Class_DenySelection"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

how i can solve this error in y_CLASS
Reply
#6

PLZ HELP
Reply
#7

pawn Код:
Class_DenySelection(playerid);
Class_AllowReselection(false);
SpawnPlayer(playerid);
And 2nd you cant bump so fast
Reply
#8

please dont spam and bump,

i think the function is actually Class_DisableSelection
someone needs to tell ****** of the typo.

i could be wrong,
open ysi.inc and look at the natives is the best way,
also look in the "errors" section of the ysi topic


EDIT:
heres the natives for y_classes
pawn Код:
/*

native
native __y_classes__();
native
native
native Class_Add(skin, Float:x, Float:y, Float:z, Float:a, ...);
native
native Class_AddEx(Group:forgroup, Group:setgroup, skin, Float:x, Float:y, Float:z, Float:a, ...);
native Class_AddForGroup(Group:group, skin, Float:x, Float:y, Float:z, Float:a, ...);
native Class_AddWithGroupSet(Group:group, skin, Float:x, Float:y, Float:z, Float:a, ...);
native Class_Enable(classid, bool:toggle);
native Class_Delete(classid);
native Class_SetPlayer(classid, playerid, bool:s);
native bool:Class_GetPlayer(classid, playerid);
native Class_Get(playerid);
native Class_Goto(playerid, playerclass);
native
native Class_DisableSelection(playerid);
native Class_DisableReselection(playerid);
native Class_EnableReselection(playerid);
native Class_ForceReselection(playerid);
native Class_ReturnToSelection(playerid);
native

*/


#include <YSI\y_classes>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)