Would this work ?
#1

Hi, the reason that i'm asking is, that iam alone at home and i can't test it with other players =(
so here is the code ...
I put that code out of an command which teleports a player to a deathmatch room

Код:
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	if(IsPlayerConnected(playerid))
	{
	SetPlayerMarkerForPlayer(i,playerid,0x00000000);
	}
  }
This code should disable the markers for the other players ....
Would this work ?
Reply
#2

pawn Код:
if(IsPlayerConnected(playerid))
Change it to

pawn Код:
if(IsPlayerConnected(i))
Everything else should be fine.
Reply
#3

no .. that isn't necessary i think ^^
because it's activated by an command
Reply
#4

Why do you need to check if the player who typed the command is connected ?
Reply
#5

Oh .. you're right ... i changed it ...
Reply
#6

Quote:

Would this work ?

Would it kill you if you would actually test it ?
Reply
#7

Please read before replying
... i have nobody to play with because i am alone at home and
others don't play samp ...
Reply
#8

thats why you have bots
Reply
#9

Yeah ...
but it's very complicated ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)