09.05.2011, 14:36
I need help about 2 things:
1)First:How to make multiple checkpoints (I have Incognitos stremaer)--Don't understand worng the question I know how to add multiple checkpoints but how to make so that if a player enteres a checkpoint it show different things for evry checkpoint that he enteeres(not same thing for evry checkpoint)
2)How to make a heal(healing another player)command(I tried to make this but even if it doesn't give me compiling errors it's not working in--game):
Mainly better script it for me so I can use it as example(It almost gave me a bad head ache looking on ****** how to make this I ended up by making it myself).
NEED HELP(ABOUT BOTH THINGS)!!!
1)First:How to make multiple checkpoints (I have Incognitos stremaer)--Don't understand worng the question I know how to add multiple checkpoints but how to make so that if a player enteres a checkpoint it show different things for evry checkpoint that he enteeres(not same thing for evry checkpoint)
2)How to make a heal(healing another player)command(I tried to make this but even if it doesn't give me compiling errors it's not working in--game):
pawn Код:
{
new gTeam1[MAX_PLAYERS];
if(gTeam1[playerid] == TEAM_MEDICS)
{
if(IsPlayerConnected(playerid))
{
new tmp[256];
new idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,RED,"USAGE: /heal [playerid]");
return 1;
}
new player1;
player1 = ReturnUser(tmp);
if(IsPlayerConnected(player1))
{
if(player1 != INVALID_PLAYER_ID)
{
SetPlayerHealth(player1,100);
GivePlayerMoney(playerid,300);
GivePlayerMoney(playerid,-300);
new pn1[24], medicname[24];
GetPlayerName(player1,pn1,sizeof(pn1));
GetPlayerName(playerid,medicname,sizeof(medicname));
new string[128];
format(string,sizeof(string),"%s has been healed by medic %s.",pn1,medicname);
SendClientMessageToAll(GREEN,string);
}
}
}
}
}
NEED HELP(ABOUT BOTH THINGS)!!!