SA-MP Forums Archive
Could Anyone Do This ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Could Anyone Do This ? (/showthread.php?tid=489244)



Could Anyone Do This ? - donhu789 - 21.01.2014

Hello Everyone i got a problem


how can i make /makewob to make a WoB Member



And also /removewob To Remove WoB member Status


my code of WoB info are PlayerInfo[playerid][pWoB]


please anyone help i realy tryed but fail


Re: Could Anyone Do This ? - Smileys - 21.01.2014

pawn Код:
CMD:makewob( playerid, params[ ] )
{
    new targetid;
    if( sscanf( params, "u", targetid ) ) return SendClientMessage( playerid, -1, "/makewob [playerid]" );
    if( targetid == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid playerid" );
    PlayerInfo[targetid][pWoB] = true;
    return 1;
}
CMD:removewob( playerid, params[ ] )
{
    new targetid;
    if( sscanf( params, "u", targetid ) ) return SendClientMessage( playerid, -1, "/removewob [playerid]" );
    if( targetid == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid playerid" );
    PlayerInfo[targetid][pWoB] = false;
    return 1;
}