13.07.2011, 15:10
How do you make it so that if a player is in a different virtual world you cant see any of there commands or messages?
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if(GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(i)) return 0;
}
public OnPlayerText(playerid, text[])
{
for(new i; i < MAX_PLAYERS; i++)
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
SendClientMessage(i, COLOR_WHITE, text);
}
}
return 0;
}
^ That makes no sense....
If the virtual world of a player doesnt equal the virtual world of the same player, return 0? WTF? Time for you to go back to scripting basics pawn Код:
|