SA-MP Forums Archive
Gangwar FS fault - 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: Gangwar FS fault (/showthread.php?tid=264721)



Gangwar FS fault - Sajt0s - 27.06.2011

Hi guys!
I made an ingame gangwar filterscript for my server but when somebody die while use the GW he will respawn at the time of accession selected skin and this position and i tried OnPlayerDeath, GetPlayerSkin commands but always do error.

i linked what i mean:

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 4500)
{
if(response)
{
if(listitem == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 1);
SetPlayerPos(playerid, 2510.9182,-1667.1847,13.5677);
SetPlayerFacingAngle(playerid, 108.3680);
SetPlayerSkin(playerid, 107);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x33AA33AA);
SendClientMessage(playerid, 0x33AA33AA, "You joined the GROVE-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);
}
if(listitem == 1)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 2);
SetPlayerPos(playerid, 2196.3926,-1143.8621,38.1016);
SetPlayerFacingAngle(playerid, 223.5255);
SetPlayerSkin(playerid, 104);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x9900FFAA);
SendClientMessage(playerid, 0x9900FFAA, "You joined the BALLAS-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);
}
if(listitem == 2)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 3);
SetPlayerPos(playerid, 2070.4202,-1593.1276,13.4980);
SetPlayerFacingAngle(playerid, 182.0797);
SetPlayerSkin(playerid, 116);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x00BFFFAA);
SendClientMessage(playerid, 0x00BFFFAA, "You joined the AZTEC-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);
}
if(listitem == 3)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 4);
SetPlayerPos(playerid, 2805.2954,-1186.1564,25.4356);
SetPlayerFacingAngle(playerid, 280.5977);
SetPlayerSkin(playerid, 10;
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0xFFFF00AA);
SendClientMessage(playerid, 0xFFFF00AA, "You joined the VAGOS-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);
}
if(listitem == 4)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 5);
SetPlayerPos(playerid, 1579.3662,-1635.3933,17.9324);
SetPlayerFacingAngle(playerid, 342.3749);
SetPlayerSkin(playerid, 280);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x0000FFAA);
SendClientMessage(playerid, 0x0000FFAA, "You joined the POLICE-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);
}
if(listitem == 5)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 1000);
GivePlayerWeapon(playerid, 28, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SetPlayerTeam(playerid, 6);
SetPlayerPos(playerid, 2745.6030,-2453.7979,16.6562);
SetPlayerFacingAngle(playerid, 278.0357);
SwitchPlayerSkin(playerid, 287);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0x993300AA);
SendClientMessage(playerid, 0x993300AA, "You joined the ARMY-TEAM!");
SendClientMessage(playerid, 0xFFFFFFAA, "Use /exitgw to exit gangwar!");
TogglePlayerControllable(playerid,1);

}
}
}
return 1;
}

i hope somebody know this fault.

Thanks for answering
Sajtos