Quote:
Originally Posted by dr.lozer
do like this
pawn Код:
public OnPlayerRequestSpawn(playerid) { if(PlayerInfo[playerid][LoggedIn] == 0) // People use this kind of functions :P you must use your own! { SendClientMessage(playerid, COLOR_RED,"ERROR: Your not loggedin to get spawn"); return 0; } return 1; }
public OnPlayerCommandReceived(playerid, cmdtext[]) { /*if (!IsPlayerSpawned(playerid)) we dont need this {*/ if (strcmp(cmdtext, "/login", true)) {
|
We need it! Because i don't want to use other commands. In request class you can't type any commands only Login.. And that my function says you can't use any commands except /login.