01.11.2011, 00:10
(
Последний раз редактировалось GAMER_PS2; 01.11.2011 в 12:09.
)
Never Mind bad tutorial for beginners
sorry guys this thread is closed....
sorry guys this thread is closed....
I wouldn't call this a tutorial your basically copy 'n' pastin from your gamemode , you don't even some of the parts for an textdraw which it has a seperate part for that in this section in the sticky thread , also there is no need for an text draw to make an Deathmatch mode.
All i understood from this is a sort of a snippet. i would not call this an "tutorial" |
For your information i trying to help the beginners. and the textdraw that i put is just a effort
just like other gangwar servers. i know its copy'n'paste from my gamemode. sorry to say but if you gonna comment bad go out of here. this is not fighthing forum this is a SAMP Forum thats why SAMP Forum is create for script and many more not for fighthing |
now its time for textdraw for this part i cant explain. |
#define TEAM_BALLAS 1 //Team ID for Ballas
#define TEAM_GROVE 2 //Team ID for Grove
#define TEAM_VAGOS 3 //Team ID for Vagos
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == TEAM_BALLAS)
{
gTeam[playerid] = TEAM_BALLAS;
}
else if (classid == TEAM_GROVE)
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == TEAM_VAGOS)
{
gTeam[playerid] = TEAM_VAGOS;
}
else if (classid == TEAM_AZTECAS)
{
gTeam[playerid] = TEAM_AZTECAS;
}
}
public OnPlayerRequestClass(playerid, classid)
{
case 0: //ID 102 - Ballas
{
SetPlayerTeam(playerid,TEAM_BALLAS);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369);
SetPlayerFacingAngle(playerid, 178);
SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369);
SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469);
SetPlayerColor(playerid, COLOR_VIOLET);
TextDrawHideForPlayer(playerid, GroveTittle);
TextDrawHideForPlayer(playerid, GroveWeap1);
TextDrawHideForPlayer(playerid, GroveWeap2);
TextDrawHideForPlayer(playerid, GroveWeap3);
TextDrawHideForPlayer(playerid, GroveWeap4);
TextDrawShowForPlayer(playerid, BallasTittle);
TextDrawShowForPlayer(playerid, BallasWeap1);
TextDrawShowForPlayer(playerid, BallasWeap2);
TextDrawShowForPlayer(playerid, BallasWeap3);
TextDrawShowForPlayer(playerid, BallasWeap4);
}
case 1: //ID 103 - Ballas
{
SetPlayerTeam(playerid,TEAM_BALLAS);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369);
SetPlayerFacingAngle(playerid, 178);
SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369);
SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469);
SetPlayerColor(playerid, COLOR_VIOLET);
TextDrawHideForPlayer(playerid, GroveTittle);
TextDrawHideForPlayer(playerid, GroveWeap1);
TextDrawHideForPlayer(playerid, GroveWeap2);
TextDrawHideForPlayer(playerid, GroveWeap3);
TextDrawHideForPlayer(playerid, GroveWeap4);
TextDrawShowForPlayer(playerid, BallasTittle);
TextDrawShowForPlayer(playerid, BallasWeap1);
TextDrawShowForPlayer(playerid, BallasWeap2);
TextDrawShowForPlayer(playerid, BallasWeap3);
TextDrawShowForPlayer(playerid, BallasWeap4);
}
//[...]
case 0, 1, 2: // { SetPlayerTeam(playerid,TEAM_BALLAS); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369); SetPlayerFacingAngle(playerid, 178); SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369); SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469); SetPlayerColor(playerid, COLOR_VIOLET); TextDrawHideForPlayer(playerid, GroveTittle); TextDrawHideForPlayer(playerid, GroveWeap1); TextDrawHideForPlayer(playerid, GroveWeap2); TextDrawHideForPlayer(playerid, GroveWeap3); TextDrawHideForPlayer(playerid, GroveWeap4); TextDrawShowForPlayer(playerid, BallasTittle); TextDrawShowForPlayer(playerid, BallasWeap1); TextDrawShowForPlayer(playerid, BallasWeap2); TextDrawShowForPlayer(playerid, BallasWeap3); TextDrawShowForPlayer(playerid, BallasWeap4); }