Quote:
Originally Posted by » JoFi »
How about just comment line 1346 ( // .... )
Can you show line 3949.
|
public OnPlayerEnterCheckpoint(playerid)
{
switch(checkpointid) //
<----- This is the line 3949
{
case DRAG_ROB:
{
canrobdrag[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robdrag",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robdrag to start robbing the 4 Dragon Casino.");
}
}
case SAND_ROB:
{
canrobsand[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robsand",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robsand to start robbing the Redsands Casino.");
}
}
case BURGER_ROB:
{
canrobburger[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robburger",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robburger to start a robbery.");
}
}
case AMMU_ROB:
{
canrobammu[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robammu",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robammu to start a robbery.");
}
}
case SEX_ROB:
{
canrobsex[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robsex",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robsex to start a robbery.");
}
}
case PIZZA_ROB:
{
canrobpizza[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robpizza",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robpizza to start a robbery.");
}
}
case CLUCK_ROB:
{
canrobcluck[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robcluck",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robcluck to start a robbery.");
}
}
case STRIP_ROB:
{
canrobstrip[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robstrip",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robstrip to start a robbery.");
}
}
case BURGER_ROB2:
{
canrobburger2[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robburger2",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robburger2 to start a robbery.");
}
}
case BINCO_ROB:
{
canrobbinco[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robbinco",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robbinco to start a robbery.");
}
}
case HOSPITAL:
{
canbehealed[playerid] = true;
SendClientMessage(playerid, 0x00FFFFFF, "Welcome to the Hospital!");
SendClientMessage(playerid, 0x00FFFFFF, "Type /heal to heal yourself for $4000!");
}
case AIR_CHECK:
{
canbeair[playerid] = true;
SendClientMessage(playerid, 0x00FFFFFF, "Welcome to the Airport!");
SendClientMessage(playerid, 0x00FFFFFF, "Type /skydive to skydive for $10000!");
}
case CALG_ROB:
{
canrobcalg[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robcalg",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robcalg to start robbing the Caligulas Casino.");
}
}
case BAR_ROB:
{
canrobbar[playerid] = true;
if(gTeam[playerid] == TEAM_ROBBERS)
{
GameTextForPlayer(playerid, "~r~/robbar",3000,3);
SendClientMessage(playerid, 0x00FFFFFF, "Type /robbar to start robbing the Liquor store.");
}
}
}
return 1;
}