wouldn't work =/ -
Bearfist - 19.04.2009
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
Re: wouldn't work =/ -
StrickenKid - 19.04.2009
use
tags.
Re: wouldn't work =/ -
Bearfist - 19.04.2009
Can You Give Me An Example ...
I don't know how to do it in tags .. I tried everything
..PLS HELP ME!
Re: wouldn't work =/ -
Blacklite - 19.04.2009
Quote:
Originally Posted by Bearfist
I tried everything
|
Yes, everything except [ pawn ] tags.
Re: wouldn't work =/ -
Bearfist - 19.04.2009
Yes But I don't know how to do I with Pawn Tags
... Iam a beginner
...can you script it in pawn tags for me ? =)
or do you mean:
if(){
if(){
}
else(){
}
...But There Are Only The functions IsInGunGame == 1 and IsInGunGame == 0...... how to put these in tags ??
Re: wouldn't work =/ -
Blacklite - 19.04.2009
pawn Код:
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;
}
Re: wouldn't work =/ -
Bearfist - 19.04.2009
Yes...You Changed nothing....
...
But I got It I had to add this from my command:
Код:
if(KillScore[playerid]==0)
{
rank[playerid] = 0;
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,22,500);
SendClientMessage(playerid,COLOR_RED,"You Are On Level 1: Dual Pistols!");
}
...and so on
But I want To Add something like this now:
if(DeathScore[playerid]==1)
{
rank[playerid] -=1;
SendClientMessage(playerid,COLOR_RED,"You Lost A Level For Dieing!");
}
Re: wouldn't work =/ -
[LCG]TANKER - 19.04.2009
pawn Код:
if(IsInGunGame[playerid] == 1)
{
IsInGunGame[playerid] = 1;
ummm... just to let you know, you going to eventally need some kind of command to turn off your gun game if you havent already done so otherwise you always will be in the gun game