Making teams. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making teams. (
/showthread.php?tid=260539)
Making teams. -
Str4ndb3rg - 09.06.2011
I followed this
http://weedarr.wikidot.com/teams tutorial but still i got theese errors:
Код:
C:\Users\Alle\Desktop\SA-MP Server\gamemodes\BaysideRoleplay.pwn(10) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Alle\Desktop\SA-MP Server\gamemodes\BaysideRoleplay.pwn(10) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Alle\Desktop\SA-MP Server\pawno\include\a_http.inc(22) : error 001: expected token: ";", but found "native"
Re: Making teams. -
HyperZ - 09.06.2011
Post these lines 10 and 22.
Re : Making teams. -
Naruto_Emilio - 09.06.2011
Post the lines please ^^
Re: Making teams. -
Str4ndb3rg - 10.06.2011
Okay
Код:
22:new wjob;
10:new gTeam[MAX_PLAYERS];
Re: Making teams. -
alpha500delta - 10.06.2011
#include <a_samp> ?
Re: Making teams. -
Str4ndb3rg - 10.06.2011
Yes i have it
Re: Making teams. -
Wesley221 - 10.06.2011
http://pastebin.com/fvUZ2Hmw
Use this one, i've made this one earlier for someone else; change all the things to your own needs and if you need any help just post
Re: Making teams. -
Str4ndb3rg - 10.06.2011
How do i do here? SetPlayerTeamFromClass(playerid, classid);
Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: // Change everything to your needs
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
SetPlayerFacingAngle(playerid, 137.9666);
SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
GameTextForPlayer(playerid, "Class 1", 1000, 3);
}
case 1:
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
SetPlayerFacingAngle(playerid, 137.9666);
SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
GameTextForPlayer(playerid, "Class 2", 1000, 3);
}
case 2:
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
SetPlayerFacingAngle(playerid, 137.9666);
SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
GameTextForPlayer(playerid, "Class 3", 1000, 3);
}
}
return 1;
}
Re: Making teams. -
Wesley221 - 10.06.2011
This is just the place, where you can "show" your classes.
You can place this anywhere in game, aslong you got the positions, interiors, angles and camerapositions.
Re: Making teams. -
Str4ndb3rg - 10.06.2011
Yes but how do i put the playerclass text there? I can't make it