How would i make it show up for the player i input
#1

ok so basically have the these 2 things

SendClientMessageEx(playerid, COLOR_LIGHTRED, "NOTE: If you wish to claim a boat, please be in water");
ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REWARD, DIALOG_STYLE_INPUT, "{00FF00}Gifted Vehicle Reward", "{FFFFFF}Please put the specific Vehicle ID to get your free vehicle reward!", "Ok", "");

and i want to enter a playerid in so like /vehrefund 1 and it will show that dialog and message to whoever playerid 1 is
Reply
#2

erm you will need zcmd and sscanf for this
pawn Код:
CMD:vehrefund(playerid,params[])
{
        new TargetID;
    if(sscanf(params,"u",TargetID)) return SendClientMessage(playerid,-1,"USAGE:/vehrefund [playerid]");
    //Do the rest of the command here because i dunno
    ShowPlayerDialog(TargetID,.....)// you complete the rest :D
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)