19.04.2009, 21:11
Hello Guys..
Today if tested my GunGame Command with my brother^^
But after I died or my Brother died I got the weapons that I usual became on normal Spawn PLS help
OnPlayerSpawn ---->
public OnPlayerSpawn(playerid)
{
if(IsInGunGame[playerid] == 1)
{
IsInGunGame[playerid] = 1;
SetPlayerPos(playerid,-1130.9011,1076.9305,1353.4279);
SetPlayerInterior(playerid,10);
}
if(IsInGunGame[playerid] == 0)
{
IsInGunGame[playerid] = 0;
switch (gTeam[playerid])
{
case TEAM_GROVE:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,2494.5767,-1686.1864,13.5129);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(grovezone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Grove Street Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_BALLAS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_PURPLE);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,1956.772,-1121.052,26.870);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(ballazone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Ballas Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_LOS_SANTOS_VAGOS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,2457.052,-1097.219,42.967);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(vagoszone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a LS Vagos Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_VARIOS_LOS_AZTECAS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,1849.725,-1923.175,13.546);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(aztecaszone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Varios Los Aztecas Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_COPS:
{
SetPlayerColor(playerid,COLOR_BLUE);
GivePlayerMoney(playerid,10000);
SetPlayerArmour(playerid,100.0);
SetPlayerScore(playerid, 500);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,31,5000);
GivePlayerWeapon(playerid,34,1000);
SetPlayerPos(playerid,1550.6207,-1675.7418,15.4894);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Cop",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_ANARCHIST:
{
SetPlayerColor(playerid,COLOR_BLACK);
GivePlayerMoney(playerid,10000);
SetPlayerArmour(playerid,100.0);
SetPlayerScore(playerid, 500);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,30,5000);
GivePlayerWeapon(playerid,35,1000);
SetPlayerPos(playerid,1304.3850,-1092.8927,25.7651);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Anarchist",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
}
}
return 1;
}
MFG Bearfist
Today if tested my GunGame Command with my brother^^
But after I died or my Brother died I got the weapons that I usual became on normal Spawn PLS help
OnPlayerSpawn ---->
public OnPlayerSpawn(playerid)
{
if(IsInGunGame[playerid] == 1)
{
IsInGunGame[playerid] = 1;
SetPlayerPos(playerid,-1130.9011,1076.9305,1353.4279);
SetPlayerInterior(playerid,10);
}
if(IsInGunGame[playerid] == 0)
{
IsInGunGame[playerid] = 0;
switch (gTeam[playerid])
{
case TEAM_GROVE:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,2494.5767,-1686.1864,13.5129);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(grovezone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Grove Street Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_BALLAS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_PURPLE);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,1956.772,-1121.052,26.870);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(ballazone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Ballas Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_LOS_SANTOS_VAGOS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,2457.052,-1097.219,42.967);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(vagoszone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a LS Vagos Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_VARIOS_LOS_AZTECAS:
{
PlayerPlaySound(playerid,1147,0.0,0.0,0.0);
SetPlayerScore(playerid, 500);
GivePlayerMoney(playerid,10000);
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
SetPlayerArmour(playerid,100.0);
SetPlayerPos(playerid,1849.725,-1923.175,13.546);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,34,333);
GivePlayerWeapon(playerid,26,1333);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GangZoneFlashForAll(aztecaszone,0xAA3333AA);
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Varios Los Aztecas Member",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_COPS:
{
SetPlayerColor(playerid,COLOR_BLUE);
GivePlayerMoney(playerid,10000);
SetPlayerArmour(playerid,100.0);
SetPlayerScore(playerid, 500);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,31,5000);
GivePlayerWeapon(playerid,34,1000);
SetPlayerPos(playerid,1550.6207,-1675.7418,15.4894);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Cop",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
case TEAM_ANARCHIST:
{
SetPlayerColor(playerid,COLOR_BLACK);
GivePlayerMoney(playerid,10000);
SetPlayerArmour(playerid,100.0);
SetPlayerScore(playerid, 500);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid,30,5000);
GivePlayerWeapon(playerid,35,1000);
SetPlayerPos(playerid,1304.3850,-1092.8927,25.7651);
SendClientMessage(playerid,COLOR_PINK,"Type /help /telehelp /dmhelp /scmds /carhelp /ganghelp");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s is a Anarchist",name);
SendClientMessageToAll(COLOR_YELLOW,string);
GangZoneShowForAll(grovezone,COLOR_GREEN);
GangZoneShowForAll(ballazone,COLOR_PURPLE);
GangZoneShowForAll(vagoszone,COLOR_YELLOW);
GangZoneShowForAll(aztecaszone,COLOR_LIGHTBLUE);
GangZoneShowForAll(punkzone,COLOR_RED);
}
}
}
return 1;
}
MFG Bearfist