14.03.2013, 21:55
Bom eu estou com um problema....
criei algumas orgs defini as classs tal, mais quando vу no OnPlayerSpawn para, definir as armas ele nгo vai fico puto da vida com isso..
preciso muito da ajuda de vocкs quando coloco alguma funзгo pra tal org no OnPlayerSpawn nгo acontece nada apos o spawn.
criei algumas orgs defini as classs tal, mais quando vу no OnPlayerSpawn para, definir as armas ele nгo vai fico puto da vida com isso..
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Gang War.");
AddPlayerClass(105,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0); //grove
AddPlayerClass(106,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
AddPlayerClass(107,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
AddPlayerClass(102,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
AddPlayerClass(103,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
AddPlayerClass(104,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid ==0)
{
Gang[playerid] = grove;
}
else if(classid ==1)
{
Gang[playerid] = grove;
}
else if(classid ==2)
{
Gang[playerid] = grove;
}
else if(classid ==3)
{
Gang[playerid] = ballas;
}
else if(classid ==4)
{
Gang[playerid] = ballas;
}
else if(classid ==5)
{
Gang[playerid] = ballas;
}
SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}