18.03.2010, 03:07
So i'm making a "BlackList" and i can't seem to get it to work.
I've had it under OnPlayerRequestSpawn, OnPlayerConnect, and OnPlayerSpawn.
anyway heres the code
I've had it under OnPlayerRequestSpawn, OnPlayerConnect, and OnPlayerSpawn.
anyway heres the code
Code:
//** BlackList
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
// Names
if(strcmp( Name, "[HPS]HellBeast"))
{
SendClientMessage(playerid, RED, "BlackListed :(");
Ban(playerid);
}
//** BlackList

