#include a_samp#include zcmdnew rajtavan[MAX_PLAYERS];CMD:sisak(playerid){if(rajtavan[playerid] == false) return rajtavan[playerid] = true, SetPlayerAttachedObject(playerid, 4, 18645, 2, 0.07, 0.017, 0, 88, 75, 0), SendClientMessage(playerid, 0x0a7800AA, \"Felvetted a bukósisakot.\");if(rajtavan[playerid] == true) return rajtavan[playerid] = false, RemovePlayerAttachedObject(playerid, 4), SendClientMessage(playerid, 0x0a7800AA, \"Levetted a bukósisakot.\");return 1;}
C:\\Documents and Settings\\Robi\\Asztal\\0.3e Teszt szerver\\filterscripts\\new.pwn( : warning 213: tag mismatchC:\\Documents and Settings\\Robi\\Asztal\\0.3e Teszt szerver\\filterscripts\\new.pwn(9) : warning 213: tag mismatchPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Warnings.
#include a_samp#include zcmdnew bool: rajtavan[MAX_PLAYERS];CMD:sisak(playerid){if(rajtavan[playerid] == false) return rajtavan[playerid] = true, SetPlayerAttachedObject(playerid, 4, 18645, 2, 0.07, 0.017, 0, 88, 75, 0), SendClientMessage(playerid, 0x0a7800AA, \"Felvetted a bukósisakot.\");if(rajtavan[playerid] == true) return rajtavan[playerid] = false, RemovePlayerAttachedObject(playerid, 4), SendClientMessage(playerid, 0x0a7800AA, \"Levetted a bukósisakot.\");return 1;}
OnPlayerDisconnect(playerid, reason)
public OnPlayerDisconnect(playerid, reason){rajtavan[playerid] = falsereturn 1;}