26.11.2010, 18:12
(
Последний раз редактировалось BlackWolf120; 26.11.2010 в 18:37.
)
haha thx, is there something u dont know
well as i said, im really a noob at scripting yet, so please dont be angry about all the questions.
mhh, maybe ive got another question
What am i doing wrong?
Regards.
P.s: no errors in case 0. (theres everything right in case0, its just for u to see the whole construction)
//edit: And is there a possibility that only a certain team is able to see a certain cp?

well as i said, im really a noob at scripting yet, so please dont be angry about all the questions.

mhh, maybe ive got another question

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
switch(CheckPoint[playerid])
{
case 0: {//checkpoint1
if(team[playerid] == 1) // If the player is part of Team 1
{
SetTimer("Bombspawnpolice",15000,false);
}
if(team[playerid] == 2) // If the player is part of Team 2
{
SetTimer("Bombspawnterrorists",15000,false);
}
}
case 1: { //checkpoint2 in police base
if(team[playerid] == 1) // If the player is part of Team 1
{
DisablePlayerCheckpoint(playerid);
new name[ 24 ], string[ 64 ];
GetPlayerName( playerid, name, 24 );
format( string, sizeof(string), "~g~%s has aborted the countdown!!", name );
GameTextForAll( string, 5000, 5 );
SendClientMessage(playerid, 0x7CFC00AA, "Well done! Countdown aborted!! ( +2000$ )");
}
if(team[playerid] == 2) // If the player is part of Team 2
{
//here would be the actions for team 2 but for sure u know that better than me:p
}
}
return 1; // in this line i get an error: error 002: only a single statement (or expression) can follow each "case"
}
Regards.
P.s: no errors in case 0. (theres everything right in case0, its just for u to see the whole construction)
//edit: And is there a possibility that only a certain team is able to see a certain cp?