25.08.2009, 20:13
Hey there,
This command has no errors, but doesn't work at all. Can someone tell me whats wrong? I would appreciate it, since my pawno knowledge isnt very advanced.
And is that unjail command correct too?
Thanks and Regards
Puzi
This command has no errors, but doesn't work at all. Can someone tell me whats wrong? I would appreciate it, since my pawno knowledge isnt very advanced.
Код:
if(strcmp(cmdtext, "/ajail", true) == 0) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE/UŻYCIE: /ajail [ID]"); { if (IsPlayerConnected(giveplayerid)) { SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,264.6288,77.5742,1001.0391); SetCameraBehindPlayer(playerid); new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof (pname)); format(stringl, sizeof(stringl), "*** %s has been jailed by Admin / został uwięziony przez Admina: %s.", pname, pname); SendClientMessageToAll(COLOR_ADMIN, stringl); printf(stringl); return 1; }else{ format(stringl, sizeof(stringl), "ID %d is not an active player / nie jest aktywnym graczem!", giveplayerid); SendClientMessage(playerid, COLOR_GREY, stringl); } } } return 1; }
Код:
if(strcmp(cmdtext, "/aunjail", true) == 0) { if(IsPlayerAdmin(playerid)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,2139.2112,1000.7551,10.8203); SendClientMessage(playerid,COLOR_GREEN, "*** You have been released from jail / Zostałes zwolniony z więzienia!"); } return 1; }
Puzi