16.08.2011, 01:50
I am trying to get it so you cant spawn until you use the /login cmd but i cant seem to get it here is what i have
public OnPlayerRequestClass(playerid, classid)
{
if(login[playerid] == 0) return SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
return 1;
}
public OnPlayerConnect(playerid)
{
login[playerid] = 0;
return 1;
}
Can anybody tell me if im doing something wrong here?
public OnPlayerRequestClass(playerid, classid)
{
if(login[playerid] == 0) return SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
return 1;
}
public OnPlayerConnect(playerid)
{
login[playerid] = 0;
return 1;
}
Can anybody tell me if im doing something wrong here?